Index: trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java	(revision 11224)
+++ trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java	(revision 11225)
@@ -235,4 +235,5 @@
      * @since 11147
      */
+    @FunctionalInterface
     public interface PathSegmentConsumer {
 
@@ -256,5 +257,5 @@
 
         private MapViewPoint cursor;
-        private boolean cursorIsActive = false;
+        private boolean cursorIsActive;
 
         /**
@@ -339,5 +340,5 @@
 
             double distance = Math.sqrt(distanceSq);
-            double offset = ((strokeProgress + distance)) % strokeLength;
+            double offset = (strokeProgress + distance) % strokeLength;
             if (offset < 0.01) {
                 return entry;
