From c978a2f0539e3f3c8ebeb553cbb1e842842de463 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Wed, 31 Jan 2018 16:32:42 +0300 Subject: [PATCH] capture agent: suppress code warnings --- .../src/com/intellij/rt/debugger/agent/CaptureStorage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/debugger/debugger-agent-storage/src/com/intellij/rt/debugger/agent/CaptureStorage.java b/java/debugger/debugger-agent-storage/src/com/intellij/rt/debugger/agent/CaptureStorage.java index 631fd3bab284..343d35985ae8 100644 --- a/java/debugger/debugger-agent-storage/src/com/intellij/rt/debugger/agent/CaptureStorage.java +++ b/java/debugger/debugger-agent-storage/src/com/intellij/rt/debugger/agent/CaptureStorage.java @@ -57,6 +57,7 @@ public class CaptureStorage { return; } try { + //noinspection SuspiciousMethodCalls CapturedStack stack = STORAGE.get(new HardKey(key)); Deque currentStacks = CURRENT_STACKS.get(); if (stack != null) { @@ -131,6 +132,7 @@ public class CaptureStorage { private final CapturedStack myValue; public WeakKey(Object key, CapturedStack value, ReferenceQueue q) { + //noinspection unchecked super(key, q); myHash = System.identityHashCode(key); myValue = value; @@ -247,6 +249,7 @@ public class CaptureStorage { // to be run from the debugger @SuppressWarnings("unused") public static Object[][] getRelatedStack(Object key, int limit) { + //noinspection SuspiciousMethodCalls CapturedStack stack = STORAGE.get(new HardKey(key)); if (stack == null) { return null;