From e3094c56ce406a4cd073062575a3d1ef7874ba53 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Wed, 2 Nov 2016 10:42:05 +0100 Subject: [PATCH] IG: better name for inspection: "Synthetic accessor call" --- .../src/META-INF/InspectionGadgets.xml | 2 +- .../src/com/siyeh/InspectionGadgetsBundle.properties | 4 ++-- ...teMemberAccessBetweenOuterAndInnerClassInspection.java | 2 +- .../PrivateMemberAccessBetweenOuterAndInnerClass.java | 8 ++++---- .../Simple.java | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/META-INF/InspectionGadgets.xml b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/META-INF/InspectionGadgets.xml index a854f4bc39d4..5b0f3324d668 100644 --- a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/META-INF/InspectionGadgets.xml +++ b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/META-INF/InspectionGadgets.xml @@ -1213,7 +1213,7 @@ key="large.initializer.primitive.type.array.display.name" groupBundle="messages.InspectionsBundle" groupKey="group.names.j2me.issues" enabledByDefault="false" level="WARNING" implementationClass="com.siyeh.ig.j2me.OverlyLargePrimitiveArrayInitializerInspection"/> - #ref()caption); + System.out.println(caption); System.out.println(N); } }; @@ -20,7 +20,7 @@ public class PrivateMemberAccessBetweenOuterAndInnerClass { class X { void test() { Private ref = new Private("access"); - System.out.println(ref.field); + System.out.println(ref.field); PrivateAccessor.printPrivate(ref); new PrivateAccessor().print(ref); } @@ -37,10 +37,10 @@ class X { // prevent synthetic constructor } void print(Private ref) { - System.out.println(ref.field); + System.out.println(ref.field); } static void printPrivate(Private ref) { - System.out.println(ref.field); + System.out.println(ref.field); } } } diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/j2me/private_member_access_between_outer_and_inner_class/Simple.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/j2me/private_member_access_between_outer_and_inner_class/Simple.java index 428dcb93c3b2..f3c662d4b213 100644 --- a/plugins/InspectionGadgets/test/com/siyeh/igtest/j2me/private_member_access_between_outer_and_inner_class/Simple.java +++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/j2me/private_member_access_between_outer_and_inner_class/Simple.java @@ -9,9 +9,9 @@ public class Simple { private void foo() {} class Inner {{ - new Simple(); - System.out.println(i); - foo(); + new Simple(); + System.out.println(i); + foo(); }} } class Other {