From 0063cf285696951e336b9cec1da8881997b286ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Nov 2014 10:01:21 +0200 Subject: java: make fields final where possible found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec --- toolkit/test/accessibility/CanvasShape.java | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'toolkit/test/accessibility/CanvasShape.java') 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; } -- cgit