diff options
Diffstat (limited to 'plugins/InspectionGadgets/src/inspectionDescriptions/AmbiguousFieldAccess.html')
-rw-r--r-- | plugins/InspectionGadgets/src/inspectionDescriptions/AmbiguousFieldAccess.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/AmbiguousFieldAccess.html b/plugins/InspectionGadgets/src/inspectionDescriptions/AmbiguousFieldAccess.html index b0f698b74e7e..c8c714b78f40 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/AmbiguousFieldAccess.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/AmbiguousFieldAccess.html @@ -1,9 +1,9 @@ <html> <body> -Reports field accesses of a super class where a local variable, parameter or field of the same name is available -in the surrounding class. In this case a cursory reader of the code may think that a variable in the surrounding class is -accessed, when in fact a field from the super class is accessed. To make the intent of the code more clear it is recommended to add a -<b>this</b> qualifier to the field access call. +Reports ambiguous accesses of a super class field from an inner or anonymous class, where a local variable, parameter or field with identical name is available +in the surrounding code. In this situation a cursory examination of the code may suggest that an element in the surrounding code is +accessed, when in actual fact a field from the super class is accessed. To clarify the intent of the code it is recommended to add a +<b>super</b> qualifier to the field access. <p>Example: <pre><code> <b>class</b> X { |