Skip to content

Commit

Permalink
fix: 'line.length() > 0' replaced with '!line.isEmpty()' in PluginSer…
Browse files Browse the repository at this point in the history
…viceFactory

Signed-off-by: Aman <[email protected]>
  • Loading branch information
aizwal9 authored Aug 5, 2024
1 parent e1cde0b commit 9a80401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private <T> void readServiceDefinitionFromUrl(Map<ServiceEntry, T> extractorMap,

private synchronized <T> void createOrRemoveService(Map<ServiceEntry, T> serviceMap, String line)
throws ReflectiveOperationException {
if (line.length() > 0 && !COMMENT_LINE_PATTERN.matcher(line).matches()) {
if (!line.isEmpty() && !COMMENT_LINE_PATTERN.matcher(line).matches()) {
ServiceEntry entry = new ServiceEntry(line);
if (entry.isRemove()) {
// Removing is a bit complex since we need to find out
Expand Down

0 comments on commit 9a80401

Please sign in to comment.