Author: j16sdiz
Date: 2008-09-04 16:55:43 +0000 (Thu, 04 Sep 2008)
New Revision: 22420
Modified:
trunk/freenet/src/freenet/config/Config.java
trunk/freenet/src/freenet/config/InvalidConfigValueException.java
trunk/freenet/src/freenet/config/NodeNeedRestartException.java
trunk/freenet/src/freenet/config/PersistentConfig.java
Log:
warning hunt: serial, generic
Modified: trunk/freenet/src/freenet/config/Config.java
===================================================================
--- trunk/freenet/src/freenet/config/Config.java 2008-09-04 16:55:20 UTC
(rev 22419)
+++ trunk/freenet/src/freenet/config/Config.java 2008-09-04 16:55:43 UTC
(rev 22420)
@@ -39,7 +39,7 @@
// Do nothing
}
- public void onRegister(SubConfig config, Option o) {
+ public void onRegister(SubConfig config, Option<?> o) {
// Do nothing
}
Modified: trunk/freenet/src/freenet/config/InvalidConfigValueException.java
===================================================================
--- trunk/freenet/src/freenet/config/InvalidConfigValueException.java
2008-09-04 16:55:20 UTC (rev 22419)
+++ trunk/freenet/src/freenet/config/InvalidConfigValueException.java
2008-09-04 16:55:43 UTC (rev 22420)
@@ -10,8 +10,8 @@
* it merely means that there are no immediately detectable problems with
* it.
*/
+ at SuppressWarnings("serial")
public class InvalidConfigValueException extends ConfigException {
-
public InvalidConfigValueException(String msg) {
super(msg);
}
Modified: trunk/freenet/src/freenet/config/NodeNeedRestartException.java
===================================================================
--- trunk/freenet/src/freenet/config/NodeNeedRestartException.java
2008-09-04 16:55:20 UTC (rev 22419)
+++ trunk/freenet/src/freenet/config/NodeNeedRestartException.java
2008-09-04 16:55:43 UTC (rev 22420)
@@ -8,8 +8,8 @@
* The thrower must ensure that the value reaches the config file, even though
* it cannot be immediately used.
*/
+ at SuppressWarnings("serial")
public class NodeNeedRestartException extends ConfigException {
-
public NodeNeedRestartException(String msg) {
super(msg);
}
Modified: trunk/freenet/src/freenet/config/PersistentConfig.java
===================================================================
--- trunk/freenet/src/freenet/config/PersistentConfig.java 2008-09-04
16:55:20 UTC (rev 22419)
+++ trunk/freenet/src/freenet/config/PersistentConfig.java 2008-09-04
16:55:43 UTC (rev 22420)
@@ -23,9 +23,9 @@
public synchronized void finishedInit() {
finishedInit = true;
if(origConfigFileContents == null) return;
- Iterator i = origConfigFileContents.keyIterator();
+ Iterator<String> i = origConfigFileContents.keyIterator();
while(i.hasNext()) {
- String key = (String) i.next();
+ String key = i.next();
Logger.error(this, "Unknown option: "+key+"
(value="+origConfigFileContents.get(key)+ ')');
}
origConfigFileContents = null;
@@ -55,7 +55,7 @@
return fs;
}
- public void onRegister(SubConfig config, Option o) {
+ public void onRegister(SubConfig config, Option<?> o) {
String val, name;
synchronized(this) {
if(finishedInit)