java: use an empty block rather than an empty statement

Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b
This commit is contained in:
Noel Grandin 2014-08-05 12:12:05 +02:00
parent a274d19d11
commit d07539ea5e
5 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View File

@ -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());

View File

@ -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) {

View File

@ -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)
{

View File

@ -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)
{