aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/java/lombok/eclipse/PatchFixes.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-09-26 09:00:12 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-09-26 09:00:12 +0200
commit27a3efeb1cb6f79ecefc6e641ba78de6d69406c3 (patch)
tree9f9ff237442b0a00e62decbb91fc6d331b277878 /src_eclipseagent/java/lombok/eclipse/PatchFixes.java
parent35691e83edffdadd5ef438793eec9c968e8bfd35 (diff)
downloadlombok-27a3efeb1cb6f79ecefc6e641ba78de6d69406c3.tar.gz
lombok-27a3efeb1cb6f79ecefc6e641ba78de6d69406c3.tar.bz2
lombok-27a3efeb1cb6f79ecefc6e641ba78de6d69406c3.zip
Rewrite of the eclipse agent to use the new lombok.patcher project.
Diffstat (limited to 'src_eclipseagent/java/lombok/eclipse/PatchFixes.java')
-rw-r--r--src_eclipseagent/java/lombok/eclipse/PatchFixes.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src_eclipseagent/java/lombok/eclipse/PatchFixes.java b/src_eclipseagent/java/lombok/eclipse/PatchFixes.java
new file mode 100644
index 00000000..23c60d32
--- /dev/null
+++ b/src_eclipseagent/java/lombok/eclipse/PatchFixes.java
@@ -0,0 +1,14 @@
+package java.lombok.eclipse;
+
+public class PatchFixes {
+ public static int fixRetrieveStartingCatchPosition(int in) {
+ return in;
+ }
+
+ private static final int BIT24 = 0x800000;
+
+ public static boolean checkBit24(Object node) throws Exception {
+ int bits = (Integer)(node.getClass().getField("bits").get(node));
+ return (bits & BIT24) != 0;
+ }
+}