@Test public void testFileNameToFileProtocol() { assertThat(fileNameToFileProtocol("fooBar")).isEqualTo("file:fooBar"); assertThat(fileNameToFileProtocol("file:fooBar")).isEqualTo("file:fooBar"); }
static String fileNameToFileProtocol(@Nonnull final String jarFileFullPath) { if (jarFileFullPath.startsWith("file:")) { return jarFileFullPath; } return "file:" + jarFileFullPath; }
JarClassLoaderService implements ClassLoaderService { static String fileNameToFileProtocol(@Nonnull final String jarFileFullPath) { if (jarFileFullPath.startsWith("file:")) { return jarFileFullPath; } return "file:" + jarFileFullPath; } }
JarClassLoaderService implements ClassLoaderService { static String fileNameToFileProtocol(@Nonnull final String jarFileFullPath) { if (jarFileFullPath.startsWith("file:")) { return jarFileFullPath; } return "file:" + jarFileFullPath; } @Inject  JarClassLoaderService(final ArtifactDiscoveryService artifactDiscoveryService); }
JarClassLoaderService implements ClassLoaderService { static String fileNameToFileProtocol(@Nonnull final String jarFileFullPath) { if (jarFileFullPath.startsWith("file:")) { return jarFileFullPath; } return "file:" + jarFileFullPath; } @Inject  JarClassLoaderService(final ArtifactDiscoveryService artifactDiscoveryService); @Override List<ShadowClass> getAllClasses(@Nonnull Artifact artifact,
                                           @Nonnull final Predicate<String> classNameFilter); }
JarClassLoaderService implements ClassLoaderService { static String fileNameToFileProtocol(@Nonnull final String jarFileFullPath) { if (jarFileFullPath.startsWith("file:")) { return jarFileFullPath; } return "file:" + jarFileFullPath; } @Inject  JarClassLoaderService(final ArtifactDiscoveryService artifactDiscoveryService); @Override List<ShadowClass> getAllClasses(@Nonnull Artifact artifact,
                                           @Nonnull final Predicate<String> classNameFilter);  }