Skip to content

Commit

Permalink
fixed equals/hashCode of ConnectionLoggerRegistry
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Oct 26, 2021
1 parent b8eedac commit a0603e3
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,15 @@ public boolean equals(@Nullable final Object o) {
failureCapacity == that.failureCapacity &&
maximumLogSizeInByte == that.maximumLogSizeInByte &&
Objects.equals(loggingDuration, that.loggingDuration) &&
Objects.equals(fluencyForwarder, that.fluencyForwarder);
Objects.equals(fluencyForwarder, that.fluencyForwarder) &&
Objects.equals(logTag, that.logTag) &&
Objects.equals(additionalLogContext, that.additionalLogContext);
}

@Override
public int hashCode() {
return Objects.hash(successCapacity, failureCapacity, loggingDuration, maximumLogSizeInByte, fluencyForwarder);
return Objects.hash(successCapacity, failureCapacity, loggingDuration, maximumLogSizeInByte, fluencyForwarder,
logTag, additionalLogContext);
}

@Override
Expand All @@ -518,6 +521,8 @@ public String toString() {
", loggingDuration=" + loggingDuration +
", maximumLogSizeInByte=" + maximumLogSizeInByte +
", fluencyForwarder=" + fluencyForwarder +
", logTag=" + logTag +
", additionalLogContext=" + additionalLogContext +
"]";
}

Expand Down

0 comments on commit a0603e3

Please sign in to comment.