java: use an empty block rather than an empty statement
Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b
This commit is contained in:
@@ -80,7 +80,7 @@ class Reader extends Thread
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
byte[] buf = new byte[1024];
|
byte[] buf = new byte[1024];
|
||||||
while (-1 != is.read(buf));
|
while (-1 != is.read(buf)) {}
|
||||||
}
|
}
|
||||||
catch (java.io.IOException exc)
|
catch (java.io.IOException exc)
|
||||||
{
|
{
|
||||||
|
@@ -782,7 +782,7 @@ public class RowSet extends TestCase
|
|||||||
m_resultSetUpdate.deleteRow();
|
m_resultSetUpdate.deleteRow();
|
||||||
assertTrue("|deleteRow|, but no |rowDeleted| (this should have been found much earlier!)", m_resultSet.rowDeleted());
|
assertTrue("|deleteRow|, but no |rowDeleted| (this should have been found much earlier!)", m_resultSet.rowDeleted());
|
||||||
clone.beforeFirst();
|
clone.beforeFirst();
|
||||||
while (clone.next());
|
while (clone.next()) {}
|
||||||
assertTrue("row set forgot that the current row is deleted", m_resultSet.rowDeleted());
|
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());
|
assertTrue("moving to the next record after |deleteRow| and clone moves failed", m_resultSet.next());
|
||||||
|
@@ -126,7 +126,7 @@ public class SVersionRCFile {
|
|||||||
String s;
|
String s;
|
||||||
|
|
||||||
while ((s = br.readLine()) != null &&
|
while ((s = br.readLine()) != null &&
|
||||||
(s.equals(VERSIONS_LINE)) != true);
|
(s.equals(VERSIONS_LINE)) != true) {}
|
||||||
|
|
||||||
while ((s = br.readLine()) != null &&
|
while ((s = br.readLine()) != null &&
|
||||||
(s.equals("")) != true) {
|
(s.equals("")) != true) {
|
||||||
|
@@ -89,7 +89,7 @@ class Reader extends Thread
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
byte[] buf = new byte[1024];
|
byte[] buf = new byte[1024];
|
||||||
while (-1 != is.read(buf));
|
while (-1 != is.read(buf)) {}
|
||||||
}
|
}
|
||||||
catch (java.io.IOException exc)
|
catch (java.io.IOException exc)
|
||||||
{
|
{
|
||||||
|
@@ -87,7 +87,7 @@ class Reader extends Thread
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
byte[] buf = new byte[1024];
|
byte[] buf = new byte[1024];
|
||||||
while (-1 != is.read(buf));
|
while (-1 != is.read(buf)) {}
|
||||||
}
|
}
|
||||||
catch (java.io.IOException exc)
|
catch (java.io.IOException exc)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user