good code is red: allow unchecked conversion when static methods are in the same class

This commit is contained in:
anna
2011-07-13 16:56:37 +04:00
parent 544fd7d9a6
commit 902deda3ac
3 changed files with 18 additions and 1 deletions
@@ -0,0 +1,10 @@
class XX {
public static String foo(Properties p, String s, boolean b){return null;}
public static String foo(Map p, String s, boolean b){return null;}
}
class UU {
void bar() {
Properties p = new Properties();
XX.fo<ref>o(p, "xxx", false);
}
}