mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
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:
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) {
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user