aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
index 7c2936ba..8a07302c 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
@@ -36,12 +36,12 @@ import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.dom.SimpleName;
public class PatchFixes {
- public static int fixRetrieveStartingCatchPosition(int in) {
- return in;
+ public static int fixRetrieveStartingCatchPosition(int original, int start) {
+ return original == -1 ? start : original;
}
- public static int fixRetrieveIdentifierEndPosition(int in) {
- return in;
+ public static int fixRetrieveIdentifierEndPosition(int original, int end) {
+ return original == -1 ? end : original;
}
public static final int ALREADY_PROCESSED_FLAG = 0x800000; //Bit 24