From d07539ea5e7c2d99e9cc58a00726ecebe56cf018 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Aug 2014 12:12:05 +0200 Subject: java: use an empty block rather than an empty statement Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b --- cli_ure/qa/climaker/ClimakerTestCase.java | 2 +- dbaccess/qa/complex/dbaccess/RowSet.java | 2 +- scripting/java/org/openoffice/idesupport/SVersionRCFile.java | 2 +- testtools/qa/cli/CLITest.java | 2 +- testtools/qa/cliversioning/VersionTestCase.java | 2 +- 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) { -- cgit