question: private static boolean classNamesEqual ( String name1 , String name2 ) { name1 = name1 . substring ( name1 . lastIndexOf ( '.' ) + 1 ) ; name2 = name2 . substring ( name2 . lastIndexOf ( '.' ) + 1 ) ; return name1 . equals ( name2 ) ; }
target:  Compares class names for equality, ignoring package names.  Returns true if class names equal, false otherwise.