Buggy code:
@ Authors ( "Nikolche<seq2seq4repair_space>Mihajlovski" ) @ Since ( "2.0.0" ) public class Scan { private static final String [ ] SKIP_PKG = new String [ ] { "com" , "org" , "net" , "io" } ; private static final Set < String > SKIP_PACKAGES = new HashSet < String > ( ) ; private static final Map < String , Set < String > > SKIP_SUBPACKAGES = new HashMap < String , Set < String > > ( ) ; private static final Set < String > CLASSPATH = new TreeSet < String > ( ) ; private static final Map < Tuple , List < Class < ? > > > CLASSES_CACHE = U . map ( ) ; private Scan ( ) { } public static synchronized void reset ( ) { } public static synchronized void args ( String ... args ) { } private static Object addon ( String addonName ) { } public static synchronized List < Class < ? > > classes ( ) { } public static synchronized List < Class < ? > > classes ( String packageName , String nameRegex , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , ClassLoader classLoader ) { } public static synchronized List < Class < ? > > annotated ( Class < ? extends Annotation > annotated ) { } public static synchronized List < Class < ? > > annotated ( Class < ? extends Annotation > annotated , ClassLoader classLoader ) { } public static synchronized List < Class < ? > > pkg ( String packageName ) { } public static synchronized List < Class < ? > > byName ( String simpleName , Predicate < Class < ? > > filter , ClassLoader classLoader ) { } public static synchronized List < Class < ? > > bySuffix ( String nameSuffix , Predicate < Class < ? > > filter , ClassLoader classLoader ) { } public static synchronized List < File > files ( String packageName , Predicate < File > filter ) { } public static synchronized List < File > dir ( String dir , Predicate < File > filter ) { } public static synchronized void files ( String packageName , Collection < File > files , Predicate < File > filter ) { } private static void getFiles ( Collection < File > files , File file , Predicate < File > filter ) { } private static List < Class < ? > > scanClasses ( String packageName , String nameRegex , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , ClassLoader classLoader ) { } private static List < Class < ? > > retrieveClasses ( String packageName , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , Pattern regex , ClassLoader classLoader ) { } private static List < Class < ? > > filterClasses ( Classes classes , String packageName , Pattern regex , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated ) { } private static void getClassesFromDir ( Collection < Class < ? > > classes , File root , File parent , Pattern regex , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , ClassLoader classLoader ) { } private static void scanFile ( Collection < Class < ? > > classes , Pattern regex , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , ClassLoader classLoader , String relName ) { Log . debug ( "scanned<seq2seq4repair_space>file" , "file" , relName ) ; if ( relName . endsWith ( ".class" ) ) { <START_BUG> String clsName = U . mid ( relName , 0 , ( - 6 ) ) . replace ( File . separatorChar , '.' ) ; <END_BUG> if ( ( regex == null ) || ( regex . matcher ( clsName ) . matches ( ) ) ) { try { Log . debug ( "loading<seq2seq4repair_space>class" , "name" , clsName ) ; Class < ? > cls = ( classLoader != null ) ? Class . forName ( clsName , true , classLoader ) : Class . forName ( clsName ) ; if ( Scan . classMatches ( cls , filter , annotated , null ) ) { classes . add ( cls ) ; } } catch ( NoClassDefFoundError e1 ) { } catch ( Exception e ) { throw U . rte ( e ) ; } } } } private static String pkgToPath ( String pkg ) { } private static boolean classMatches ( Class < ? > cls , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , Pattern regex ) { } private static Enumeration < URL > resources ( String name ) { } private static List < Class < ? > > getClassesFromJAR ( String jarName , List < Class < ? > > classes , String pkg , Pattern regex , Predicate < Class < ? > > filter , Class < ? extends Annotation > annotated , ClassLoader classLoader ) { } private static boolean ignore ( String name ) { } public static synchronized Set < String > getClasspath ( ) { } }

Fix:
String clsName = U . mid ( relName , 0 , ( - 6 ) ) . replace ( '//' , '.' ) . replace ( '\\' , '.' ) ;