Merge pull request #2846 from kubikrubikvkube/master

Singleton object should not have map with values that can't be GCed
This commit is contained in:
ingmargoudt 2017-02-11 20:43:32 +01:00 committed by GitHub
commit 20b24e3360
40 changed files with 289 additions and 263 deletions

View file

@ -425,7 +425,7 @@ public class Session {
Throwable t = cause;
while (t.getCause() != null) {
t = t.getCause();
if (t == cause) {
if (Objects.equals(t, cause)) {
throw new IllegalArgumentException("Infinite cycle detected in causal chain");
}
}