@Test public void shouldBeClassFile() { assertThat( ScannerUtil.isJavaClassFile( "META-INF/MANIFEST.MF" ) ) .isFalse(); assertThat( ScannerUtil.isJavaClassFile( "org/apache/pkg/MyService.class" ) ) .isTrue(); }
public static boolean isJavaClassFile( String file ) { return file.endsWith( ".class" ); }
ScannerUtil { public static boolean isJavaClassFile( String file ) { return file.endsWith( ".class" ); } }
ScannerUtil { public static boolean isJavaClassFile( String file ) { return file.endsWith( ".class" ); } private  ScannerUtil(); }
ScannerUtil { public static boolean isJavaClassFile( String file ) { return file.endsWith( ".class" ); } private  ScannerUtil(); @Nonnull static String convertJarFileResourceToJavaClassName( @Nonnull String test ); static boolean isJavaClassFile( String file ); @Deprecated @Nonnull static String convertSlashToSystemFileSeparator( @Nonnull String path ); }
ScannerUtil { public static boolean isJavaClassFile( String file ) { return file.endsWith( ".class" ); } private  ScannerUtil(); @Nonnull static String convertJarFileResourceToJavaClassName( @Nonnull String test ); static boolean isJavaClassFile( String file ); @Deprecated @Nonnull static String convertSlashToSystemFileSeparator( @Nonnull String path );  }