From 50207ec316c72668f3b903dde9dad8959e941d6b Mon Sep 17 00:00:00 2001 From: "Nelson A. de Oliveira" Date: Wed, 31 Jul 2013 15:24:15 -0300 Subject: [PATCH] Remove continue and return --- OsmAnd-java/src/net/osmand/router/TestRouting.java | 3 +-- OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/router/TestRouting.java b/OsmAnd-java/src/net/osmand/router/TestRouting.java index 930113c795..fdb906f7e9 100644 --- a/OsmAnd-java/src/net/osmand/router/TestRouting.java +++ b/OsmAnd-java/src/net/osmand/router/TestRouting.java @@ -144,8 +144,7 @@ public class TestRouting { public static void info() { println("Run router tests is console utility to test route calculation for osmand. It is also possible to calculate one route from -start to -end."); println("\nUsage for run tests : runTestsSuite [-routingXmlPath=PATH] [-verbose] [-obfDir=PATH] [-start=lat;lon] [-end=lat;lon] [-testDir=PATH] {individualTestPath}"); - return; - } + } private static void println(String string) { diff --git a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java index 86b9934e8f..3bd1f4d2f3 100644 --- a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java @@ -477,8 +477,7 @@ public class OpeningHoursParser { break; } if(Character.isWhitespace(ch) || ch == ','){ - continue; - } else if (ch == '-') { + } else if (ch == '-') { if(previousDay != -1){ startDay = previousDay; } else if (previousMonth != -1) {