diff --git a/java/java-impl/src/inspectionDescriptions/SuspiciousMethodCalls.html b/java/java-impl/src/inspectionDescriptions/SuspiciousMethodCalls.html index 0966d6aa2256..ca2802c17327 100644 --- a/java/java-impl/src/inspectionDescriptions/SuspiciousMethodCalls.html +++ b/java/java-impl/src/inspectionDescriptions/SuspiciousMethodCalls.html @@ -9,12 +9,12 @@ correspond to the collection's elements type.

- The option 'Report suspicious but possibly correct method calls' makes it possible to ignore - potentially correct code, like this: + Use the checkbox below to report potentially correct code, like this:

-  Number number = new Integer(0);
-  list.remove(number);
+  public boolean accept(Map<Integer, String> map, Object key) {
+    return map.containsKey(key);
+  }