diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-05 00:50:44 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-05 00:50:44 +0200 |
commit | 1f8a907187cbdeacc0947d3cc00d251640882a54 (patch) | |
tree | f521b26495884a4d4535da7b2947ce4301502990 /src_eclipseagent/lombok | |
parent | e7492d444cace44a39d94853512c31a9b95d930d (diff) | |
download | lombok-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.java | 5 |
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 "."; |