private static boolean classNamesEqual(String name1,String name2){
  name1=name1.substring(name1.lastIndexOf('.') + 1);
  name2=name2.substring(name2.lastIndexOf('.') + 1);
  return name1.equals(name2);
}

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