From 0f0d8cb721c00283bd27eaf4663e5944752e068b Mon Sep 17 00:00:00 2001 From: Adeel Zafar Date: Thu, 15 Aug 2019 16:36:11 +0500 Subject: [PATCH] Make fields private in WebServerHelper --- .../kiwix/kiwixmobile/webserver/WebServerHelper.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/kiwix/kiwixmobile/webserver/WebServerHelper.java b/app/src/main/java/org/kiwix/kiwixmobile/webserver/WebServerHelper.java index 3696d03ab..252e86e67 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/webserver/WebServerHelper.java +++ b/app/src/main/java/org/kiwix/kiwixmobile/webserver/WebServerHelper.java @@ -20,11 +20,11 @@ import org.kiwix.kiwixlib.JNIKiwixServer; */ public class WebServerHelper { - Context context; + private Context context; public static boolean isServerStarted; - static int port; - JNIKiwixLibrary kiwixLibrary = new JNIKiwixLibrary(); - JNIKiwixServer kiwixServer = new JNIKiwixServer(kiwixLibrary); + private static int port; + private JNIKiwixLibrary kiwixLibrary = new JNIKiwixLibrary(); + private JNIKiwixServer kiwixServer = new JNIKiwixServer(kiwixLibrary); private static final String TAG = "WebServerHelper"; public WebServerHelper(@NonNull Context context) { @@ -58,7 +58,7 @@ public class WebServerHelper { return false; } - boolean startAndroidWebServer(ArrayList selectedBooksPath) { + private boolean startAndroidWebServer(ArrayList selectedBooksPath) { if (!isServerStarted) { port = 8080; //Call to start server @@ -78,7 +78,7 @@ public class WebServerHelper { } // get Ip address of the device's wireless access point i.e. wifi hotspot OR wifi network - static String getIpAddress() { + private static String getIpAddress() { String ip = ""; try { Enumeration enumNetworkInterfaces = NetworkInterface