java: use an empty block rather than an empty statement
Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b
This commit is contained in:
parent
a274d19d11
commit
d07539ea5e
@ -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)
|
||||
{
|
||||
|
@ -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());
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user