package sfBugsNew;

import edu.umd.cs.findbugs.annotations.Confidence;
import edu.umd.cs.findbugs.annotations.ExpectWarning;
import edu.umd.cs.findbugs.annotations.NoWarning;

public class Bug1219 {

    interface A {
    }

    interface B {
    }
    interface C {
    }
    interface D {
    }
    static class CC implements C {}
    static class DC implements D {}

    A objectA;

    @NoWarning(value="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY", confidence=Confidence.MEDIUM)
    public boolean compare(B objectB) {
        return (objectA == objectB);
    }
    
    @NoWarning(value="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY", confidence=Confidence.MEDIUM)
      public boolean compare(C objectC) {
        return (objectA == objectC);
    }
    
    @ExpectWarning(value="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY", confidence=Confidence.MEDIUM)
    public static boolean compare(C objectC, D objectD) {
      return (objectC == objectD);
  }
}

@@ -467,32 +467,129 @@
 fidence.MEDIUM)%0A
+    @ExpectWarning(value=%22EC_UNRELATED_TYPES_USING_POINTER_EQUALITY%22, confidence=Confidence.LOW)%0A
     public boole
@@ -608,24 +608,24 @@
  objectB) %7B%0A
-
         retu
@@ -651,29 +651,25 @@
 ctB);%0A    %7D%0A
-    
 %0A
+
     @NoWarni
@@ -748,24 +748,121 @@
 nce.MEDIUM)%0A
+    @ExpectWarning(value=%22EC_UNRELATED_TYPES_USING_POINTER_EQUALITY%22, confidence=Confidence.LOW)%0A
       public
@@ -934,20 +934,16 @@
 ;%0A    %7D%0A
-    
 %0A    @Ex

Make sure we don't miss "low" confidence warnings