Skip to content

Commit 3a4bc4f

Browse files
committed
Compatibility with java 6
(cherry picked from commit 9259771)
1 parent c3b501d commit 3a4bc4f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/com/goide/inspections/GoDuplicateFunctionOrMethodInspection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void visitMethodDeclaration(@NotNull final GoMethodDeclaration method) {
5252
String typeText = GoMethodDeclarationStubElementType.calcTypeText(method);
5353
if (typeText == null) return;
5454

55-
GoFile file = method.getContainingFile();
55+
final GoFile file = method.getContainingFile();
5656
GlobalSearchScope scope = GoPackageUtil.packageScope(file);
5757
IdFilter idFilter = GoIdFilter.getFilesFilter(scope);
5858
final Module module = ModuleUtilCore.findModuleForPsiElement(file);

src/com/goide/inspections/GoFileIgnoredByBuildToolNotificationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ else if (module != null && !GoUtil.matchedForModuleBuildTarget(psiFile, module))
100100
return null;
101101
}
102102

103-
private static EditorNotificationPanel createIgnoredByBuildToolPanel(@NotNull Project project, @NotNull VirtualFile file) {
103+
private static EditorNotificationPanel createIgnoredByBuildToolPanel(@NotNull final Project project, @NotNull VirtualFile file) {
104104
EditorNotificationPanel panel = new EditorNotificationPanel();
105105
String fileName = file.getName();
106106
panel.setText("'" + fileName + "' will be ignored by build tool since its name starts with '" + fileName.charAt(0) + "'");

src/com/goide/psi/impl/GoPsiImplUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ public static GoReference getReference(@NotNull GoReferenceExpression o) {
148148

149149
@NotNull
150150
public static PsiReference getReference(@NotNull GoFieldName o) {
151-
GoFieldNameReference field = new GoFieldNameReference(o);
152-
GoReference ordinal = new GoReference(o);
151+
final GoFieldNameReference field = new GoFieldNameReference(o);
152+
final GoReference ordinal = new GoReference(o);
153153
return new PsiMultiReference(new PsiReference[]{field, ordinal}, o) {
154154
@Override
155155
public PsiElement resolve() {

src/com/goide/util/GoExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public boolean execute() {
212212
GeneralCommandLine commandLine = null;
213213
try {
214214
commandLine = createCommandLine();
215-
GeneralCommandLine finalCommandLine = commandLine;
215+
final GeneralCommandLine finalCommandLine = commandLine;
216216
myProcessHandler = new KillableColoredProcessHandler(finalCommandLine) {
217217
@Override
218218
public void startNotify() {

0 commit comments

Comments
 (0)