summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-15 16:25:10 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 08:15:52 +0200
commitfa22664be218c211c41342c6296616c316b2c3b1 (patch)
tree2118e12dffce57f5027ef4aed227d27acf8c6ed6 /qadevOOo
parent94ae3e827b71da5be77ff04522ff156770801b25 (diff)
java: always use braces for while loops
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/convwatch/FileHelper.java3
-rw-r--r--qadevOOo/runner/helper/URLHelper.java3
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java4
-rw-r--r--qadevOOo/tests/java/ifc/style/_CharacterProperties.java3
-rw-r--r--qadevOOo/tests/java/mod/_defreg/NestedRegistry.java3
-rw-r--r--qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java3
-rw-r--r--qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java3
-rw-r--r--qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java3
8 files changed, 16 insertions, 9 deletions
diff --git a/qadevOOo/runner/convwatch/FileHelper.java b/qadevOOo/runner/convwatch/FileHelper.java
index dab33c32e1f5..515fe8ea7365 100644
--- a/qadevOOo/runner/convwatch/FileHelper.java
+++ b/qadevOOo/runner/convwatch/FileHelper.java
@@ -277,8 +277,9 @@ public class FileHelper
out = new java.io.FileWriter(outputFile);
int c;
- while ((c = in.read()) != -1)
+ while ((c = in.read()) != -1) {
out.write(c);
+ }
}
finally
diff --git a/qadevOOo/runner/helper/URLHelper.java b/qadevOOo/runner/helper/URLHelper.java
index 4ca5605761d8..fa54496a193a 100644
--- a/qadevOOo/runner/helper/URLHelper.java
+++ b/qadevOOo/runner/helper/URLHelper.java
@@ -139,8 +139,9 @@ public class URLHelper
if (lSubFiles != null)
{
Iterator<File> aSnapshot = lSubFiles.iterator();
- while (aSnapshot.hasNext())
+ while (aSnapshot.hasNext()) {
lFilteredFiles.add(aSnapshot.next());
+ }
}
}
}
diff --git a/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java b/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java
index 7fa5a7feccbd..87f7aee16cdc 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java
@@ -152,8 +152,8 @@ public class _XArrayFormulaRange extends MultiMethodTest {
s1 = s1.trim() ;
s2 = s2.trim() ;
while (p1 < s1.length() && p2 < s2.length()) {
- while (s1.charAt(p1) == ' ') p1 ++ ;
- while (s2.charAt(p2) == ' ') p2 ++ ;
+ while (s1.charAt(p1) == ' ') { p1 ++; }
+ while (s2.charAt(p2) == ' ') { p2 ++; }
if (s1.charAt(p1) != s2.charAt(p2)) return false ;
p1 ++ ;
p2 ++ ;
diff --git a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java
index 27270b74c631..6e968337a353 100644
--- a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java
+++ b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java
@@ -499,8 +499,9 @@ public class _CharacterProperties extends MultiPropertyTest {
int count = members.size();
String[] res = new String[count];
int i=0;
- while(oEnum.hasNext())
+ while(oEnum.hasNext()) {
res[i++] = oEnum.next();
+ }
return res;
}
diff --git a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java
index 2aa02482f779..a6cc37bdd93b 100644
--- a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java
+++ b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java
@@ -97,8 +97,9 @@ public class NestedRegistry extends TestCase {
byte[] buf = new byte[1024] ;
int bytesRead = 0 ;
- while ((bytesRead = fIn.read(buf)) > 0)
+ while ((bytesRead = fIn.read(buf)) > 0) {
fOut.write(buf, 0, bytesRead) ;
+ }
fIn.close() ;
fOut.close() ;
diff --git a/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java b/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java
index 10e72c09cc73..99caad5b8a52 100644
--- a/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java
+++ b/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java
@@ -94,8 +94,9 @@ public class NestedRegistry extends TestCase {
byte[] buf = new byte[1024] ;
int bytesRead = 0 ;
- while ((bytesRead = fIn.read(buf)) > 0)
+ while ((bytesRead = fIn.read(buf)) > 0) {
fOut.write(buf, 0, bytesRead) ;
+ }
fIn.close() ;
fOut.close() ;
diff --git a/qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java b/qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java
index 8fd5b48bda1c..4e6d8bbf27ae 100644
--- a/qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java
+++ b/qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java
@@ -76,8 +76,9 @@ public class SimpleRegistry extends TestCase {
byte[] buf = new byte[1024] ;
int bytesRead = 0 ;
- while ((bytesRead = fIn.read(buf)) > 0)
+ while ((bytesRead = fIn.read(buf)) > 0) {
fOut.write(buf, 0, bytesRead) ;
+ }
fIn.close() ;
fOut.close() ;
diff --git a/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java b/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java
index edafcccd5f9c..8f167de4fd3d 100644
--- a/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java
+++ b/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java
@@ -79,8 +79,9 @@ public class SimpleRegistry extends TestCase {
byte[] buf = new byte[1024] ;
int bytesRead = 0 ;
- while ((bytesRead = fIn.read(buf)) > 0)
+ while ((bytesRead = fIn.read(buf)) > 0) {
fOut.write(buf, 0, bytesRead) ;
+ }
fIn.close() ;
fOut.close() ;