aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authorAndrey Turbanov <turbanoff@gmail.com>2022-04-17 16:07:57 +0300
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-04-17 22:03:57 +0700
commit816f585d541f51ab106d67a617cbb01f52169fb0 (patch)
tree5d75bd4e6a681726d36e1ee7c805f15704578c2a /weaver
parent57dd44a35a6a60aae5576cbd35c110ae82505dac (diff)
downloadaspectj-816f585d541f51ab106d67a617cbb01f52169fb0.tar.gz
aspectj-816f585d541f51ab106d67a617cbb01f52169fb0.zip
Cleanup redundant null check before instanceof
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/main/java/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/weaver/src/main/java/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolver.java b/weaver/src/main/java/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolver.java
index 5f0e54772..60de72385 100644
--- a/weaver/src/main/java/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolver.java
+++ b/weaver/src/main/java/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolver.java
@@ -55,7 +55,7 @@ public class DefaultCacheKeyResolver implements CacheKeyResolver {
StringBuilder hashable = new StringBuilder(256);
// Add the list of loader urls to the hash list
- if (cl != null && cl instanceof URLClassLoader) {
+ if (cl instanceof URLClassLoader) {
URL[] urls = ((URLClassLoader) cl).getURLs();
for (URL url : urls) {
hashableStrings.add(url.toString());