View Javadoc

1   package net.sourceforge.pmd.typeresolution;
2   
3   import java.util.Map;
4   
5   public class ClassWithImportInnerOnDemand {
6   
7       public void foo(Map m) {
8           Map.Entry e = (Map.Entry) m.entrySet().iterator().next();
9       }
10  }