Author: nextgens
Date: 2006-09-08 21:06:31 +0000 (Fri, 08 Sep 2006)
New Revision: 10435
Modified:
trunk/freenet/src/freenet/plugin/PluginManager.java
Log:
fix 1.5ism
Modified: trunk/freenet/src/freenet/plugin/PluginManager.java
===================================================================
--- trunk/freenet/src/freenet/plugin/PluginManager.java 2006-09-08 20:58:42 UTC
(rev 10434)
+++ trunk/freenet/src/freenet/plugin/PluginManager.java 2006-09-08 21:06:31 UTC
(rev 10435)
@@ -80,7 +80,8 @@
* is not valid
*/
public void set(String val) throws
InvalidConfigValueException {
- if(val == null || get().contains(val)) return;
+ if(val == null || get().indexOf(val) >= 0)
return;
+ // it's probably silly as it won't allow more
than 1 plugin to be loaded
addPlugin(val, true);
};
});