summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 12:12:05 +0200
committerNoel Grandin <noel@peralex.com>2014-08-08 09:48:18 +0200
commitd07539ea5e7c2d99e9cc58a00726ecebe56cf018 (patch)
treeebd4e598876850b063f238d1a8bcc6b34cc7b509
parenta274d19d116671d67cf63bcc5dc8639e385394d6 (diff)
java: use an empty block rather than an empty statement
Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b
-rw-r--r--cli_ure/qa/climaker/ClimakerTestCase.java2
-rw-r--r--dbaccess/qa/complex/dbaccess/RowSet.java2
-rw-r--r--scripting/java/org/openoffice/idesupport/SVersionRCFile.java2
-rw-r--r--testtools/qa/cli/CLITest.java2
-rw-r--r--testtools/qa/cliversioning/VersionTestCase.java2
5 files changed, 5 insertions, 5 deletions
diff --git a/cli_ure/qa/climaker/ClimakerTestCase.java b/cli_ure/qa/climaker/ClimakerTestCase.java
index ea78b2b7d071..344433d65545 100644
--- a/cli_ure/qa/climaker/ClimakerTestCase.java
+++ b/cli_ure/qa/climaker/ClimakerTestCase.java
@@ -80,7 +80,7 @@ class Reader extends Thread
try
{
byte[] buf = new byte[1024];
- while (-1 != is.read(buf));
+ while (-1 != is.read(buf)) {}
}
catch (java.io.IOException exc)
{
diff --git a/dbaccess/qa/complex/dbaccess/RowSet.java b/dbaccess/qa/complex/dbaccess/RowSet.java
index c69c8a2e9f22..e26aa233d049 100644
--- a/dbaccess/qa/complex/dbaccess/RowSet.java
+++ b/dbaccess/qa/complex/dbaccess/RowSet.java
@@ -782,7 +782,7 @@ public class RowSet extends TestCase
m_resultSetUpdate.deleteRow();
assertTrue("|deleteRow|, but no |rowDeleted| (this should have been found much earlier!)", m_resultSet.rowDeleted());
clone.beforeFirst();
- while (clone.next());
+ while (clone.next()) {}
assertTrue("row set forgot that the current row is deleted", m_resultSet.rowDeleted());
assertTrue("moving to the next record after |deleteRow| and clone moves failed", m_resultSet.next());
diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java
index 149eca0e0101..94389e53e395 100644
--- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java
+++ b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java
@@ -126,7 +126,7 @@ public class SVersionRCFile {
String s;
while ((s = br.readLine()) != null &&
- (s.equals(VERSIONS_LINE)) != true);
+ (s.equals(VERSIONS_LINE)) != true) {}
while ((s = br.readLine()) != null &&
(s.equals("")) != true) {
diff --git a/testtools/qa/cli/CLITest.java b/testtools/qa/cli/CLITest.java
index 40d2ba0d265a..370e5ebf0dde 100644
--- a/testtools/qa/cli/CLITest.java
+++ b/testtools/qa/cli/CLITest.java
@@ -89,7 +89,7 @@ class Reader extends Thread
try
{
byte[] buf = new byte[1024];
- while (-1 != is.read(buf));
+ while (-1 != is.read(buf)) {}
}
catch (java.io.IOException exc)
{
diff --git a/testtools/qa/cliversioning/VersionTestCase.java b/testtools/qa/cliversioning/VersionTestCase.java
index 7ada72145a60..4112ed318e8e 100644
--- a/testtools/qa/cliversioning/VersionTestCase.java
+++ b/testtools/qa/cliversioning/VersionTestCase.java
@@ -87,7 +87,7 @@ class Reader extends Thread
try
{
byte[] buf = new byte[1024];
- while (-1 != is.read(buf));
+ while (-1 != is.read(buf)) {}
}
catch (java.io.IOException exc)
{