reta commented on code in PR #2275:
URL: https://github.com/apache/cxf/pull/2275#discussion_r1962547946
##########
core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java:
##########
@@ -167,7 +167,8 @@ public boolean equals(Object obj) {
}
final DelayedCloseable other = (DelayedCloseable) obj;
- return Objects.equals(closeable, other.closeable);
+ // because of the broken Liskov Substitution Principle, check in
two ways to find equal streams
+ return Objects.equals(other.closeable, closeable) ||
Objects.equals(closeable, other.closeable);
Review Comment:
@yurkom do you mind if I push some changes to your pull request? I think I
found out the problem, thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]