Somehow in eclipse mars wanted us to pull in more ecj deps, fixed that problem with a trivial code tweak.

This commit is contained in:
Reinier Zwitserloot committed 2015-05-02 15:40:44 +02:00
1 parent 93a9e63b7f
commit 6fce13a8db
2 files changed
+2 -4

No files matched your search

@@ -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) {
@@ -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;
}
}