Jelajahi Sumber

Declare static fields as protected instead of public

Sebastián Katzer 12 tahun lalu
induk
melakukan
663037ad39
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      src/android/LocalNotification.java

+ 3 - 3
src/android/LocalNotification.java

@@ -48,10 +48,10 @@ import android.content.SharedPreferences.Editor;
  */
 public class LocalNotification extends CordovaPlugin {
 
-    public final static String PLUGIN_NAME = "LocalNotification";
+    protected final static String PLUGIN_NAME = "LocalNotification";
 
-    public static CordovaWebView webView   = null;
-    public static Context context          = null;
+    protected static CordovaWebView webView   = null;
+    protected static Context context          = null;
 
     @Override
     public void initialize (CordovaInterface cordova, CordovaWebView webView) {