Skip to content

Commit

Permalink
fix sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgreffier committed Oct 2, 2023
1 parent f8de73d commit 01b3572
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public List<String> validateResetOffsets(ConsumerGroupResetOffsets consumerGroup
}
}
default -> {
// Nothing to do
}
}
return validationErrors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;

/**
* Service to manage Kafka Streams.
Expand Down Expand Up @@ -71,7 +70,7 @@ public boolean isNamespaceOwnerOfKafkaStream(Namespace namespace, String resourc
== AccessControlEntry.ResourcePatternType.PREFIXED)
.filter(accessControlEntry -> resource.startsWith(accessControlEntry.getSpec().getResource()))
.map(accessControlEntry -> accessControlEntry.getSpec().getResourceType())
.collect(Collectors.toList()))
.toList())
.containsAll(List.of(AccessControlEntry.ResourceType.TOPIC, AccessControlEntry.ResourceType.GROUP));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,7 @@ public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (!(obj instanceof NonEmptyString)) {
return false;
}
return true;
return obj instanceof NonEmptyString;
}

@Override
Expand Down

0 comments on commit 01b3572

Please sign in to comment.