Skip to content

Commit

Permalink
include new config cachingEnabled into hashcode,equals and toString
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
  • Loading branch information
Yannic92 committed Jul 12, 2022
1 parent 5790162 commit 8fe2670
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -77,19 +77,21 @@ public boolean equals(final Object o) {
}
final DefaultSignalEnrichmentProviderConfig that = (DefaultSignalEnrichmentProviderConfig) o;
return Objects.equals(askTimeout, that.askTimeout) &&
Objects.equals(cacheConfig, that.cacheConfig);
Objects.equals(cacheConfig, that.cacheConfig) &&
cachingEnabled == that.cachingEnabled;
}

@Override
public int hashCode() {
return Objects.hash(askTimeout, cacheConfig);
return Objects.hash(askTimeout, cacheConfig, cachingEnabled);
}

@Override
public String toString() {
return getClass().getSimpleName() + " [" +
"askTimeout=" + askTimeout +
", cacheConfig=" + cacheConfig +
", cachingEnabled=" + cachingEnabled +
"]";
}
}

0 comments on commit 8fe2670

Please sign in to comment.