Minor polishing in ConcurrentReferenceHashMap

Closes gh-24494
This commit is contained in:
Rossen Stoyanchev
2020-02-11 10:49:28 +00:00
parent e4a530efac
commit 7d1d989535

View File

@@ -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
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
return false;
}
});
return (result == Boolean.TRUE);
return (Boolean.TRUE.equals(result));
}
@Override