Skip to content

Commit

Permalink
sonar :: compare using equals() (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb committed Mar 4, 2023
1 parent 7094b83 commit ba16324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/emissary/core/MobileAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ protected DirectoryEntry getNextKey(@Nullable final IServiceProviderPlace place,
return null;
}

// Stop looping from occuring
// Stop looping from occurring
if (payloadArg.transformHistory().size() > this.MAX_ITINERARY_STEPS &&
payloadArg.currentForm() != ERROR_FORM) {
!ERROR_FORM.equals(payloadArg.currentForm())) {
payloadArg.replaceCurrentForm(ERROR_FORM);
payloadArg.addProcessingError("Agent stopped due to larger than max transform history size (looping?)");
}
Expand Down

0 comments on commit ba16324

Please sign in to comment.