replace 'for (;;)' with 'while (true)'
This commit is contained in:
@@ -52,7 +52,7 @@ class NamespaceComparator {
|
||||
@NotNull File txtFile) {
|
||||
String serialized = new NamespaceComparator(includeObject).doCompareNamespaces(nsa, nsb);
|
||||
try {
|
||||
for (;;) {
|
||||
while (true) {
|
||||
String expected = Files.toString(txtFile, Charset.forName("utf-8")).replace("\r\n", "\n");
|
||||
|
||||
if (expected.contains("kick me")) {
|
||||
@@ -549,7 +549,7 @@ class NamespaceComparator {
|
||||
try {
|
||||
StringBuilder r = new StringBuilder();
|
||||
BufferedReader reader = new BufferedReader(new StringReader(string));
|
||||
for (;;) {
|
||||
while (true) {
|
||||
String line = reader.readLine();
|
||||
if (line == null) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user