diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-03-01 02:55:46 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-03-01 02:55:46 +0100 |
commit | fbab1ca77cb8306843e26c5bad91186b34563282 (patch) | |
tree | 15772687215499b573c6a7f458227cfe7b194b08 /src/core/lombok | |
parent | 1fa01142832bf9ba6ddd9d08d7392bd807f8430f (diff) | |
download | lombok-fbab1ca77cb8306843e26c5bad91186b34563282.tar.gz lombok-fbab1ca77cb8306843e26c5bad91186b34563282.tar.bz2 lombok-fbab1ca77cb8306843e26c5bad91186b34563282.zip |
yet another patcher-sourced fix, heh. Version-a-day!
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/core/AnnotationProcessor.java | 4 | ||||
-rw-r--r-- | src/core/lombok/core/PublicApiCreatorApp.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lombok/core/AnnotationProcessor.java b/src/core/lombok/core/AnnotationProcessor.java index 6c61fef2..734150cd 100644 --- a/src/core/lombok/core/AnnotationProcessor.java +++ b/src/core/lombok/core/AnnotationProcessor.java @@ -43,7 +43,7 @@ import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; import javax.tools.Diagnostic.Kind; -import lombok.patcher.HomeFinder; +import lombok.patcher.ClassRootFinder; @SupportedAnnotationTypes("*") public class AnnotationProcessor extends AbstractProcessor { @@ -102,7 +102,7 @@ public class AnnotationProcessor extends AbstractProcessor { if (environmentClassLoader != null && environmentClassLoader.getClass().getCanonicalName().equals("org.codehaus.plexus.compiler.javac.IsolatedClassLoader")) { if (lombokAlreadyAddedTo.put(environmentClassLoader, true) == null) { Method m = environmentClassLoader.getClass().getDeclaredMethod("addURL", URL.class); - URL selfUrl = new File(HomeFinder.findHomeOfClass(AnnotationProcessor.class)).toURI().toURL(); + URL selfUrl = new File(ClassRootFinder.findClassRootOfClass(AnnotationProcessor.class)).toURI().toURL(); m.invoke(environmentClassLoader, selfUrl); } return environmentClassLoader; diff --git a/src/core/lombok/core/PublicApiCreatorApp.java b/src/core/lombok/core/PublicApiCreatorApp.java index b776bf8f..178a45e8 100644 --- a/src/core/lombok/core/PublicApiCreatorApp.java +++ b/src/core/lombok/core/PublicApiCreatorApp.java @@ -35,7 +35,7 @@ import java.util.jar.JarOutputStream; import java.util.zip.ZipEntry; import lombok.Lombok; -import lombok.patcher.HomeFinder; +import lombok.patcher.ClassRootFinder; import org.mangosdk.spi.ProviderFor; @@ -79,7 +79,7 @@ public class PublicApiCreatorApp extends LombokApp { * a jar that wasn't accessed via the file-system, or if its started via e.g. unpacking the jar. */ private static File findOurJar() { - return new File(HomeFinder.findHomeOfClass(PublicApiCreatorApp.class)); + return new File(ClassRootFinder.findClassRootOfClass(PublicApiCreatorApp.class)); } private int writeApiJar(File outFile) throws Exception { |