From 6ffbf77ab56a2e9d3191af3f304c86abdac65efa Mon Sep 17 00:00:00 2001 From: Vincent Privat Date: Sun, 16 Sep 2018 19:27:03 +0200 Subject: [PATCH] fix warnings --- .gitignore | 2 ++ src/nl/jeroenhoek/josm/gridify/ui/Preview.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ae3c172..1157042 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /bin/ +/javadoc/ +/build/ diff --git a/src/nl/jeroenhoek/josm/gridify/ui/Preview.java b/src/nl/jeroenhoek/josm/gridify/ui/Preview.java index 974a8a4..1336956 100644 --- a/src/nl/jeroenhoek/josm/gridify/ui/Preview.java +++ b/src/nl/jeroenhoek/josm/gridify/ui/Preview.java @@ -240,8 +240,8 @@ private List range(Coordinates a, Coordinates b, int n) { for (int i = 1; i < n; i++) { Coordinates between = new Coordinates(); - between.x = a.x + (Math.round(dx * i)); - between.y = a.y + (Math.round(dy * i)); + between.x = a.x + Math.round(dx * i); + between.y = a.y + Math.round(dy * i); points.add(between); } }