aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-05 00:50:44 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-05 00:50:44 +0200
commit1f8a907187cbdeacc0947d3cc00d251640882a54 (patch)
treef521b26495884a4d4535da7b2947ce4301502990 /src_eclipseagent/lombok
parente7492d444cace44a39d94853512c31a9b95d930d (diff)
downloadlombok-1f8a907187cbdeacc0947d3cc00d251640882a54.tar.gz
lombok-1f8a907187cbdeacc0947d3cc00d251640882a54.tar.bz2
lombok-1f8a907187cbdeacc0947d3cc00d251640882a54.zip
[TRIVIAL]
Diffstat (limited to 'src_eclipseagent/lombok')
-rw-r--r--src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
index be01753c..9220c790 100644
--- a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
+++ b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
@@ -81,10 +81,7 @@ public class EclipsePatcher {
}
private static String findPathOfOurClassloader() throws Exception {
- ClassLoader loader = EclipsePatcher.class.getClassLoader();
- if ( loader == null ) loader = ClassLoader.getSystemClassLoader();
-
- URI uri = loader.getResource(EclipsePatcher.class.getName().replace('.', '/') + ".class").toURI();
+ URI uri = EclipsePatcher.class.getResource("/" + EclipsePatcher.class.getName().replace('.', '/') + ".class").toURI();
Pattern p = Pattern.compile("^jar:file:([^\\!]+)\\!.*\\.class$");
Matcher m = p.matcher(uri.toString());
if ( !m.matches() ) return ".";