r26762 - trunk/freenet/src/freenet/node

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-14 04:40:46 +0000 (Tue, 14 Apr 2009)
New Revision: 26762

Modified:
   trunk/freenet/src/freenet/node/NodeRestartJobsQueue.java
Log:
Generic-related warnings (NodeRestartJobsQueue.java)

Modified: trunk/freenet/src/freenet/node/NodeRestartJobsQueue.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeRestartJobsQueue.java	2009-04-14 04:40:22 UTC (rev 26761)
+++ trunk/freenet/src/freenet/node/NodeRestartJobsQueue.java	2009-04-14 04:40:46 UTC (rev 26762)
@@ -18,7 +18,8 @@
 	
 	private final long nodeDBHandle;
 
-	public NodeRestartJobsQueue(long nodeDBHandle2) {
+	@SuppressWarnings("unchecked")
+    public NodeRestartJobsQueue(long nodeDBHandle2) {
 		nodeDBHandle = nodeDBHandle2;
 		dbJobs = new Set[NativeThread.JAVA_PRIORITY_RANGE];
 		dbJobsEarly = new Set[NativeThread.JAVA_PRIORITY_RANGE];
@@ -27,11 +28,11 @@
 			dbJobsEarly[i] = new HashSet<DBJob>();
 		}
 	}
-
-	public static NodeRestartJobsQueue init(final long nodeDBHandle, ObjectContainer container) {
+	
+    public static NodeRestartJobsQueue init(final long nodeDBHandle, ObjectContainer container) {
+    	@SuppressWarnings("serial")
 		ObjectSet<NodeRestartJobsQueue> results = 
 			container.query(new Predicate<NodeRestartJobsQueue>() {
-
 			@Override
 			public boolean match(NodeRestartJobsQueue arg0) {
 				return (arg0.nodeDBHandle == nodeDBHandle);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.