From 6f301576ebbf2a631c7f36af3cc97d482a2d0d3d Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Mon, 14 Jul 2014 14:26:21 -0400 Subject: [PATCH] Mark PluginEntry fields as final Makes the intention of the class more clear, and the public fields less bad. --- framework/src/org/apache/cordova/PluginEntry.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/src/org/apache/cordova/PluginEntry.java b/framework/src/org/apache/cordova/PluginEntry.java index 9782825a..c56c453c 100755 --- a/framework/src/org/apache/cordova/PluginEntry.java +++ b/framework/src/org/apache/cordova/PluginEntry.java @@ -23,27 +23,27 @@ import org.apache.cordova.CordovaPlugin; /** * This class represents a service entry object. */ -public class PluginEntry { +public final class PluginEntry { /** * The name of the service that this plugin implements */ - public String service; + public final String service; /** * The plugin class name that implements the service. */ - public String pluginClass; + public final String pluginClass; /** * The pre-instantiated plugin to use for this entry. */ - public CordovaPlugin plugin; + public final CordovaPlugin plugin; /** * Flag that indicates the plugin object should be created when PluginManager is initialized. */ - public boolean onload; + public final boolean onload; /** * Constructs with a CordovaPlugin already instantiated.