method refs: mark method as registered in RefCountHolder

This commit is contained in:
anna
2012-09-27 18:02:08 +02:00
parent 2823a7e108
commit 67d6396df2
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,12 @@
class C {
interface Simplest {
void m();
}
private static void simplest1() { }
private static void <warning descr="Private method 'simplest()' is never used">simplest</warning>() { }
public static void main(String[] args) {
Simplest o = C::simplest1;
System.out.println(o);
}
}