]> source.dussan.org Git - aspectj.git/commit
Single Map method can be used
authorLars Grefer <eclipse@larsgrefer.de>
Sat, 15 Aug 2020 14:25:42 +0000 (16:25 +0200)
committerLars Grefer <eclipse@larsgrefer.de>
Sat, 15 Aug 2020 14:36:00 +0000 (16:36 +0200)
commit2debfa05f43a6fe71e7bc141f4f78c66f85c95b0
tree0b536ac7ef2a5222c7382bc3d03f7023fb5c295d
parentd66bec041a857bc3076a20dfeb1aa6037b020db1
Single Map method can be used

Reports common usage patterns of java.util.Map that could be replaced with Java 8 methods: getOrDefault(), computeIfAbsent(), putIfAbsent(), merge(), or replaceAll().

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
bcel-builder/src/main/java/org/aspectj/apache/bcel/util/NonCachingClassLoaderRepository.java
org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/ast/AccessForInlineVisitor.java
org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/lookup/PushinCollector.java
weaver/src/main/java/org/aspectj/weaver/bcel/BcelTypeMunger.java