diff --git a/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/CopyToFile.java b/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/CopyToFile.java index ac235dc2b7bc79d615d812849238b89914d66750..b79571d2684ec42b53b03639509654eb553e6783 100755 --- a/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/CopyToFile.java +++ b/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/CopyToFile.java @@ -12,8 +12,10 @@ public class CopyToFile { static String filePath; public static void CopyURLToFile(String pathname) { - /* - Copy data from the URL to a file, only if the file doesn't exist already or if it's content is older than 10 minutes. + /** + * Copy data from the URL to a file, + * only if the file doesn't exist already or + * if it's content is older than 10 minutes. */ if (new File(pathname).isFile() || (Calendar.getInstance().getTimeInMillis() - new File(pathname).lastModified() > 600000) && @@ -34,8 +36,8 @@ public class CopyToFile { } public static Weather CopyFileToWeather() { - /* - Parse the weather data from the file. + /** + *Parse the weather data from the file. */ Weather weatherObject = null; try { diff --git a/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/URLCreator.java b/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/URLCreator.java index 36c6963b014f8a04f383002ca9ee58eb458a1615..cbc2385a6354a67647b7a955954eb340656c003a 100755 --- a/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/URLCreator.java +++ b/src/main/java/de/hdm_stuttgart/mi/sd1/weather/model/URLCreator.java @@ -4,8 +4,9 @@ import java.net.MalformedURLException; import java.net.URL; public class URLCreator { - /* - create the URL with the corresponding city ID value created from SearchingAndComparing. + /** + * create the URL with the corresponding + * city ID value created from SearchingAndComparing. */ public static URL CreateUrl () throws MalformedURLException { URL linkWithId = new URL("https://api.openweathermap.org/data/2.5/forecast?lang=de&APPID=41d009d32d4e302e0cd3d0f55bf5da24&units=metric&id="+ SearchingAndComparing.GetID());