Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat-Jain committed Dec 16, 2024
1 parent 6c720b8 commit 02c5146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public boolean hasNext() throws SocketTimeoutException
try {
while (watch.hasNext()) {
Watch.Response<V1Pod> item = watch.next();
if (item != null && item.type != null && !item.type.equals(BOOKMARK)) {
if (item != null && item.type != null && !BOOKMARK.equals(item.type)) {
DiscoveryDruidNodeAndResourceVersion result = null;
if (item.object != null) {
result = new DiscoveryDruidNodeAndResourceVersion(
Expand All @@ -150,7 +150,7 @@ public boolean hasNext() throws SocketTimeoutException
result
);
return true;
} else if (item != null && item.type != null && item.type.equals(BOOKMARK)) {
} else if (item != null && item.type != null && BOOKMARK.equals(item.type)) {
// Events with type BOOKMARK will only contain resourceVersion and no metadata. See
// Kubernetes API documentation for details.
LOGGER.debug("BOOKMARK event fired, no nothing, only update resourceVersion");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public boolean isArray()
@Override
public boolean isPrimitive()
{
return this.equals(STRING) || isNumeric(this);
return STRING.equals(this) || isNumeric(this);
}

@Nullable
Expand Down

0 comments on commit 02c5146

Please sign in to comment.