mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
Mark PluginEntry fields as final
Makes the intention of the class more clear, and the public fields less bad.
This commit is contained in:
parent
e2b3f76a10
commit
6f301576eb
@ -23,27 +23,27 @@ import org.apache.cordova.CordovaPlugin;
|
|||||||
/**
|
/**
|
||||||
* This class represents a service entry object.
|
* This class represents a service entry object.
|
||||||
*/
|
*/
|
||||||
public class PluginEntry {
|
public final class PluginEntry {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the service that this plugin implements
|
* The name of the service that this plugin implements
|
||||||
*/
|
*/
|
||||||
public String service;
|
public final String service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The plugin class name that implements the 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.
|
* 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.
|
* 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.
|
* Constructs with a CordovaPlugin already instantiated.
|
||||||
|
Loading…
Reference in New Issue
Block a user