1 /** 2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html 3 */ 4 package net.sourceforge.pmd.typeresolution; 5 6 import java.util.Map; 7 8 /** 9 * This class is to verify that the inner class "Entry" of java.util.Map 10 * is imported correctly. 11 */ 12 public class ClassWithImportInnerOnDemand { 13 14 public void foo(Map<String, String> m) { 15 Map.Entry<String, String> e = m.entrySet().iterator().next(); 16 assert e != null; 17 } 18 }