aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-22 23:53:08 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-22 23:53:08 +0100
commitd76c50e9d5250c86a8ecc89e98379386c6ce23c4 (patch)
tree84bb75365006ad6e141ee4f219f0c6e84bada785 /src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
parentf258229b88a797694320b1794a4084998411a94b (diff)
parent4ba4a371b5741fd8ba77969da3704725e97fdeed (diff)
downloadlombok-d76c50e9d5250c86a8ecc89e98379386c6ce23c4.tar.gz
lombok-d76c50e9d5250c86a8ecc89e98379386c6ce23c4.tar.bz2
lombok-d76c50e9d5250c86a8ecc89e98379386c6ce23c4.zip
Merge branch 'master' of git@github.com:rzwitserloot/lombok
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