forked from External/mage
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:
commit
20b24e3360
40 changed files with 289 additions and 263 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue