diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 16:25:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:52 +0200 |
commit | fa22664be218c211c41342c6296616c316b2c3b1 (patch) | |
tree | 2118e12dffce57f5027ef4aed227d27acf8c6ed6 /toolkit/test/accessibility/AccessibleTextHandler.java | |
parent | 94ae3e827b71da5be77ff04522ff156770801b25 (diff) |
java: always use braces for while loops
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
Diffstat (limited to 'toolkit/test/accessibility/AccessibleTextHandler.java')
-rw-r--r-- | toolkit/test/accessibility/AccessibleTextHandler.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java index d29eefdab6ae..dfecd974803c 100644 --- a/toolkit/test/accessibility/AccessibleTextHandler.java +++ b/toolkit/test/accessibility/AccessibleTextHandler.java @@ -650,13 +650,15 @@ class TextEditDialog extends TextActionDialog // count equal characters from front and end int nFront = 0; while( (nFront < nMinLength) && - (sNew.charAt(nFront) == sOld.charAt(nFront)) ) + (sNew.charAt(nFront) == sOld.charAt(nFront)) ) { nFront++; + } int nBack = 0; while( (nBack < nMinLength) && ( sNew.charAt(sNew.length()-nBack-1) == - sOld.charAt(sOld.length()-nBack-1) ) ) + sOld.charAt(sOld.length()-nBack-1) ) ) { nBack++; + } if( nFront + nBack > nMinLength ) nBack = nMinLength - nFront; |