diff options
Diffstat (limited to 'src/lombok/core')
-rw-r--r-- | src/lombok/core/AnnotationValues.java | 2 | ||||
-rw-r--r-- | src/lombok/core/ShowUserHelp.java | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lombok/core/AnnotationValues.java b/src/lombok/core/AnnotationValues.java index e08d4169..432d507f 100644 --- a/src/lombok/core/AnnotationValues.java +++ b/src/lombok/core/AnnotationValues.java @@ -87,7 +87,7 @@ public class AnnotationValues<A extends Annotation> { public A getInstance() throws AnnotationValueDecodeFail { if ( cachedInstance != null ) return cachedInstance; InvocationHandler invocations = new InvocationHandler() { - @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { + public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { AnnotationValue v = values.get(method.getName()); if ( v == null ) { Object defaultValue = method.getDefaultValue(); diff --git a/src/lombok/core/ShowUserHelp.java b/src/lombok/core/ShowUserHelp.java index 0596dcc4..443de833 100644 --- a/src/lombok/core/ShowUserHelp.java +++ b/src/lombok/core/ShowUserHelp.java @@ -1,6 +1,5 @@ package lombok.core; -import java.awt.Desktop; import java.net.URI; /** @@ -13,7 +12,9 @@ public class ShowUserHelp { public static void main(String[] args) { boolean browserOpened = false; try { - Desktop.getDesktop().browse(ABOUT_LOMBOK_URL); + //java.awt.Desktop doesn't exist in 1.5, and for IDE's sakes, we may want to work in java1.5 someday, so... + Object desktop = Class.forName("java.awt.Desktop").getMethod("getDesktop").invoke(null); + Class.forName("java.awt.Desktop").getMethod("browse", URI.class).invoke(desktop, ABOUT_LOMBOK_URL); browserOpened = true; } catch ( Exception ignore ) {} |