diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-18 10:01:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-18 12:44:28 +0200 |
commit | 0063cf285696951e336b9cec1da8881997b286ce (patch) | |
tree | be70dfd8127c35f9e4a6d18d4db459a587813bf4 /toolkit/test/accessibility/CanvasShape.java | |
parent | 250391009aec9930abcc57930ddd4b6f56f4df9c (diff) |
java: make fields final where possible
found by PMD
Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
Diffstat (limited to 'toolkit/test/accessibility/CanvasShape.java')
-rw-r--r-- | toolkit/test/accessibility/CanvasShape.java | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/toolkit/test/accessibility/CanvasShape.java b/toolkit/test/accessibility/CanvasShape.java index 41d82b1230c7..b0767e619a0b 100644 --- a/toolkit/test/accessibility/CanvasShape.java +++ b/toolkit/test/accessibility/CanvasShape.java @@ -299,24 +299,14 @@ class CanvasShape +"x"+maSize.width+"x"+maSize.height+"<"; } - private AccTreeNode - maNode; - private XAccessibleContext - mxContext; - private XAccessibleComponent - mxComponent; - private String - msDescription, - msName; - private Rectangle2D.Double - maShape; - private Point - maPosition; - private Dimension - maSize; - private Color - maFgColor, - maBgColor; + private final AccTreeNode maNode; + private final XAccessibleContext mxContext; + private final XAccessibleComponent mxComponent; + private String msDescription, msName; + private Rectangle2D.Double maShape; + private Point maPosition; + private Dimension maSize; + private Color maFgColor, maBgColor; private boolean // Highlighting objects is an internal concept. Corresponds to selection in the tree view. mbHighlighted, @@ -324,6 +314,5 @@ class CanvasShape mbSelected, // Set when the accessible object is focused. mbFocused; - private int - mnRole; + private int mnRole; } |