RFR: 8275241: Unused ArrayList is created in RequestEngine.addHooks
Andrey Turbanov
duke at openjdk.java.net
Wed Oct 13 18:46:08 UTC 2021
Local `ArrayList<RequestHook>` is created in a method `RequestEngine.addHooks`. Elements are added to it, but then content is unused. Seems leftovers from some refactoring.
Found by IntelliJ IDEA inspection "Mismatched query and update of collection"
-------------
Commit messages:
- [PATCH] Unused ArrayList is created in RequestEngine.addHooks
Changes: https://git.openjdk.java.net/jdk/pull/5629/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5629&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8275241
Stats: 3 lines in 1 file changed: 0 ins; 3 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/5629.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5629/head:pull/5629
PR: https://git.openjdk.java.net/jdk/pull/5629
More information about the hotspot-jfr-dev
mailing list