Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Sep 5, 2024
1 parent 47fb95f commit e477fa3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Collection<String> getEntries() {
* @return {@code true} if this collection contains given entry, {@code false} if not
*/
public boolean contains(@NotNull String entry) {
if (this.entry != null && this.entry.equals(entry)) return true;
if (entry.equals(this.entry)) return true;
return entries != null && entries.contains(entry);
}

Expand Down

0 comments on commit e477fa3

Please sign in to comment.