aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-04-15 22:12:12 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-05-02 15:40:44 +0200
commit6fce13a8db45629a76e31c2a1c676ab9dac021dc (patch)
tree1bb17aa61f14b6a330cd924ed3562759bb05fa92 /src/eclipseAgent
parent93a9e63b7f3d68a0fd8c3cab090d9f535ea0bbcb (diff)
downloadlombok-6fce13a8db45629a76e31c2a1c676ab9dac021dc.tar.gz
lombok-6fce13a8db45629a76e31c2a1c676ab9dac021dc.tar.bz2
lombok-6fce13a8db45629a76e31c2a1c676ab9dac021dc.zip
Somehow in eclipse mars wanted us to pull in more ecj deps, fixed that problem with a trivial code tweak.
Diffstat (limited to 'src/eclipseAgent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java4
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposalPortal.java2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java
index 97ca5a7e..c11a49cd 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java
@@ -60,8 +60,6 @@ import org.eclipse.jdt.ui.text.java.CompletionProposalCollector;
import org.eclipse.jdt.ui.text.java.IJavaCompletionProposal;
public class PatchExtensionMethodCompletionProposal {
-
-
public static IJavaCompletionProposal[] getJavaCompletionProposals(IJavaCompletionProposal[] javaCompletionProposals,
CompletionProposalCollector completionProposalCollector) {
@@ -178,7 +176,7 @@ public class PatchExtensionMethodCompletionProposal {
return !proposals.isEmpty() && Reflection.isComplete();
}
- private static int getReplacementOffset(IJavaCompletionProposal proposal) {
+ private static int getReplacementOffset(Object proposal) {
try {
return Reflection.replacementOffsetField.getInt(proposal);
} catch (Exception ignore) {
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposalPortal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposalPortal.java
index 6dca1901..0bc040d3 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposalPortal.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposalPortal.java
@@ -52,7 +52,7 @@ public class PatchExtensionMethodCompletionProposalPortal {
}
//ignore, we don't have access to the correct ECJ classes, so lombok can't possibly
//do anything useful here.
- return (IJavaCompletionProposal[])javaCompletionProposals;
+ return (IJavaCompletionProposal[]) javaCompletionProposals;
}
}