From 540bb7b778897e0d860e3a869cd915ae98d29eb4 Mon Sep 17 00:00:00 2001 From: adb Date: Wed, 3 Mar 2021 11:42:57 +0100 Subject: [PATCH] typo in "APIParser" --- .../adb/sensorCommunityAPI/{APIPaser.java => APIParser.java} | 4 ++-- src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) rename src/main/java/sh/adb/sensorCommunityAPI/{APIPaser.java => APIParser.java} (93%) diff --git a/src/main/java/sh/adb/sensorCommunityAPI/APIPaser.java b/src/main/java/sh/adb/sensorCommunityAPI/APIParser.java similarity index 93% rename from src/main/java/sh/adb/sensorCommunityAPI/APIPaser.java rename to src/main/java/sh/adb/sensorCommunityAPI/APIParser.java index 423c2d3..36b6191 100644 --- a/src/main/java/sh/adb/sensorCommunityAPI/APIPaser.java +++ b/src/main/java/sh/adb/sensorCommunityAPI/APIParser.java @@ -15,9 +15,9 @@ import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils; import org.json.simple.parser.ParseException; -public class APIPaser { +public class APIParser { String url; - public APIPaser(String urlString) throws MalformedURLException { + public APIParser(String urlString) throws MalformedURLException { this.url = urlString; } public JSONArray getJSONObject() throws IOException, ParseException { diff --git a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java index e15644d..ec26558 100644 --- a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java +++ b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java @@ -4,7 +4,6 @@ import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.ParseException; -import javax.security.auth.callback.Callback; import java.io.IOException; import java.net.MalformedURLException; import java.util.concurrent.Executors; @@ -14,12 +13,12 @@ import java.util.concurrent.TimeUnit; public class DataStoreBot { String storePath; String apiURL; - APIPaser api; + APIParser api; DataStore store; DataStoreBot(String storePath, String apiURL) throws MalformedURLException { this.storePath = storePath; this.apiURL = apiURL; - this.api = new APIPaser(this.apiURL); + this.api = new APIParser(this.apiURL); this.store = new DataStore(); } public void setInterval(int seconds) {