From 252ed1708ad5a007e4c47c243595206650876a2b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Aug 2014 09:02:41 +0200 Subject: double-checked locking is not thread-safe in Java found by PMD Change-Id: Ibd4a9139c626932bec56c0b1dd32b4d59c8440b1 --- toolkit/test/accessibility/AccessibleTextHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toolkit/test/accessibility') diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java index 39ecbad6e4bc..acd2f0208005 100644 --- a/toolkit/test/accessibility/AccessibleTextHandler.java +++ b/toolkit/test/accessibility/AccessibleTextHandler.java @@ -249,11 +249,11 @@ class AccessibleTextHandler extends NodeHandler StringBuffer aChars = new StringBuffer(); try { - aChars.append( "[" ); + aChars.append( '[' ); for( int i = 0; i < nChars; i++) { aChars.append( xText.getCharacter(i) ); - aChars.append( "," ); + aChars.append( ',' ); } if( nChars > 0) { @@ -262,7 +262,7 @@ class AccessibleTextHandler extends NodeHandler else aChars.append( "..." ); } - aChars.append( "]" ); + aChars.append( ']' ); } catch( IndexOutOfBoundsException e ) { -- cgit