From d8363a0108df937178ee1e48ac1f95be6fd13809 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 19 Aug 2016 14:37:15 +0200 Subject: [PATCH] file formatting --- .../net/osmand/binary/RouteDataObject.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/binary/RouteDataObject.java b/OsmAnd-java/src/net/osmand/binary/RouteDataObject.java index 646e357ae9..0e1387eaa0 100644 --- a/OsmAnd-java/src/net/osmand/binary/RouteDataObject.java +++ b/OsmAnd-java/src/net/osmand/binary/RouteDataObject.java @@ -221,10 +221,10 @@ public class RouteDataObject { public int[] getTypes() { return types; } - + public float getMaximumSpeed(boolean direction){ int sz = types.length; - float maxSpeed = 0; + float maxSpeed = 0; for (int i = 0; i < sz; i++) { RouteTypeRule r = region.quickGetEncodingRule(types[i]); if(r.isForward() != 0) { @@ -232,19 +232,18 @@ public class RouteDataObject { continue; } } - float mx = r.maxSpeed(); - if (mx > 0) { - maxSpeed = mx; - // conditional has priority - if(r.conditional()) { - break; - } - } + float mx = r.maxSpeed(); + if (mx > 0) { + maxSpeed = mx; + // conditional has priority + if(r.conditional()) { + break; + } + } } return maxSpeed ; } - - + public static float parseSpeed(String v, float def) { if(v.equals("none")) { return RouteDataObject.NONE_MAX_SPEED;