提交 93a9cd9c authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

cleanup - redundant continue statements

上级 dccd6706
...@@ -1086,7 +1086,6 @@ public class Select extends Query { ...@@ -1086,7 +1086,6 @@ public class Select extends Query {
// skip the generation of plan SQL for this already recursive persistent CTEs, // skip the generation of plan SQL for this already recursive persistent CTEs,
// since using a with statement will re-create the common table expression // since using a with statement will re-create the common table expression
// views. // views.
continue;
} else { } else {
buff.append("WITH RECURSIVE ").append(t.getName()).append('('); buff.append("WITH RECURSIVE ").append(t.getName()).append('(');
buff.resetCount(); buff.resetCount();
......
...@@ -590,7 +590,6 @@ public final class MVStore { ...@@ -590,7 +590,6 @@ public final class MVStore {
} }
} }
} catch (Exception e) { } catch (Exception e) {
continue;
} }
} }
if (!validStoreHeader) { if (!validStoreHeader) {
......
...@@ -123,7 +123,6 @@ ShutdownHandler { ...@@ -123,7 +123,6 @@ ShutdownHandler {
for (int i = 0; args != null && i < args.length; i++) { for (int i = 0; args != null && i < args.length; i++) {
String arg = args[i]; String arg = args[i];
if (arg == null) { if (arg == null) {
continue;
} else if ("-?".equals(arg) || "-help".equals(arg)) { } else if ("-?".equals(arg) || "-help".equals(arg)) {
showUsage(); showUsage();
return; return;
......
...@@ -489,7 +489,6 @@ public class Csv implements SimpleRowSource { ...@@ -489,7 +489,6 @@ public class Csv implements SimpleRowSource {
return null; return null;
} else if (ch <= ' ') { } else if (ch <= ' ') {
// ignore spaces // ignore spaces
continue;
} else if (lineComment != 0 && ch == lineComment) { } else if (lineComment != 0 && ch == lineComment) {
// comment until end of line // comment until end of line
inputBufferStart = -1; inputBufferStart = -1;
......
...@@ -1489,10 +1489,8 @@ public class Recover extends Tool implements DataHandler { ...@@ -1489,10 +1489,8 @@ public class Recover extends Tool implements DataHandler {
sb.append(getSQL(columnName, v)); sb.append(getSQL(columnName, v));
} catch (Exception e) { } catch (Exception e) {
writeDataError(writer, "exception " + e, s.getBytes()); writeDataError(writer, "exception " + e, s.getBytes());
continue;
} catch (OutOfMemoryError e) { } catch (OutOfMemoryError e) {
writeDataError(writer, "out of memory", s.getBytes()); writeDataError(writer, "out of memory", s.getBytes());
continue;
} }
} }
sb.append(");"); sb.append(");");
......
...@@ -122,7 +122,6 @@ public class Server extends Tool implements Runnable, ShutdownHandler { ...@@ -122,7 +122,6 @@ public class Server extends Tool implements Runnable, ShutdownHandler {
for (int i = 0; args != null && i < args.length; i++) { for (int i = 0; args != null && i < args.length; i++) {
String arg = args[i]; String arg = args[i];
if (arg == null) { if (arg == null) {
continue;
} else if ("-?".equals(arg) || "-help".equals(arg)) { } else if ("-?".equals(arg) || "-help".equals(arg)) {
// ok // ok
} else if (arg.startsWith("-web")) { } else if (arg.startsWith("-web")) {
...@@ -218,7 +217,6 @@ public class Server extends Tool implements Runnable, ShutdownHandler { ...@@ -218,7 +217,6 @@ public class Server extends Tool implements Runnable, ShutdownHandler {
for (int i = 0; args != null && i < args.length; i++) { for (int i = 0; args != null && i < args.length; i++) {
String arg = args[i]; String arg = args[i];
if (arg == null) { if (arg == null) {
continue;
} else if ("-?".equals(arg) || "-help".equals(arg)) { } else if ("-?".equals(arg) || "-help".equals(arg)) {
showUsage(); showUsage();
return; return;
......
...@@ -278,7 +278,6 @@ public class ToDateParser { ...@@ -278,7 +278,6 @@ public class ToDateParser {
} }
if (!foundAnToken) { if (!foundAnToken) {
p.removeFirstChar(); p.removeFirstChar();
continue;
} }
} }
return p; return p;
...@@ -374,4 +373,4 @@ public class ToDateParser { ...@@ -374,4 +373,4 @@ public class ToDateParser {
} }
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论