From 9cf622f3b9f4ec8c7a8facc2c854337fe76a36e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Mon, 27 Nov 2017 22:52:45 +0100 Subject: [PATCH] Sonar fix --- src/main/java/org/shredzone/commons/suncalc/MoonTimes.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java b/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java index 10358fb..35a2ed7 100644 --- a/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java +++ b/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java @@ -105,7 +105,6 @@ public MoonTimes execute() { Double rise = null; Double set = null; - double ye = 0.0; boolean alwaysUp = false; boolean alwaysDown = false; @@ -117,7 +116,7 @@ public MoonTimes execute() { double y_plus = correctedMoonHeight(jd.atHour(hour + 1.0)); QuadraticInterpolation qi = new QuadraticInterpolation(y_minus, y_0, y_plus); - ye = qi.getYe(); + double ye = qi.getYe(); if (qi.getNumberOfRoots() == 1) { if (y_minus < 0.0) {