Browse Source

Minor polishing in ConcurrentReferenceHashMap

Closes gh-24494
pull/24512/head
Rossen Stoyanchev 6 years ago
parent
commit
7d1d989535
  1. 6
      spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java

6
spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -329,7 +329,7 @@ public class ConcurrentReferenceHashMap<K, V> extends AbstractMap<K, V> implemen @@ -329,7 +329,7 @@ public class ConcurrentReferenceHashMap<K, V> extends AbstractMap<K, V> implemen
return false;
}
});
return (result == Boolean.TRUE);
return (Boolean.TRUE.equals(result));
}
@Override
@ -344,7 +344,7 @@ public class ConcurrentReferenceHashMap<K, V> extends AbstractMap<K, V> implemen @@ -344,7 +344,7 @@ public class ConcurrentReferenceHashMap<K, V> extends AbstractMap<K, V> implemen
return false;
}
});
return (result == Boolean.TRUE);
return (Boolean.TRUE.equals(result));
}
@Override

Loading…
Cancel
Save