Kaydet (Commit) d07539ea authored tarafından Noel Grandin's avatar Noel Grandin

java: use an empty block rather than an empty statement

Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b
üst a274d19d
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment