diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-13 09:02:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-20 10:35:51 +0200 |
commit | 252ed1708ad5a007e4c47c243595206650876a2b (patch) | |
tree | b2a7a47f8a39c598c25355640a77022918c2d209 /toolkit/test/accessibility | |
parent | a240a78cc771a89febfe181abe78d2cf16e1970f (diff) |
double-checked locking is not thread-safe in Java
found by PMD
Change-Id: Ibd4a9139c626932bec56c0b1dd32b4d59c8440b1
Diffstat (limited to 'toolkit/test/accessibility')
-rw-r--r-- | toolkit/test/accessibility/AccessibleTextHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) { |