From d7f4769f5713758af259c1f1e27b1313ee35a4ae Mon Sep 17 00:00:00 2001 From: danielegobbetti Date: Tue, 5 Jan 2016 16:04:32 +0100 Subject: [PATCH] make the conversion methods static --- .../nodomain/freeyourgadget/gadgetbridge/model/Weather.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/Weather.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/Weather.java index eedb9ac17..59981199a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/Weather.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/Weather.java @@ -10,7 +10,7 @@ public class Weather { private static final Weather weather = new Weather(); public static Weather getInstance() {return weather;} - public int mapToYahooCondition(int openWeatherMapCondition) { + public static int mapToYahooCondition(int openWeatherMapCondition) { // openweathermap.org conditions: // http://openweathermap.org/weather-conditions switch (openWeatherMapCondition) { @@ -135,8 +135,7 @@ public class Weather { } } - - public int mapToOpenWeatherMapCondition(int yahooCondition) { + public static int mapToOpenWeatherMapCondition(int yahooCondition) { switch (yahooCondition) { //yahoo weather conditions: //https://developer.yahoo.com/weather/documentation.html