Author: xor
Date: 2008-11-11 23:47:17 +0000 (Tue, 11 Nov 2008)
New Revision: 23500
Modified:
trunk/plugins/Freetalk/FTBoard.java
trunk/plugins/Freetalk/FTMessage.java
trunk/plugins/Freetalk/WoT/FTMessageManagerWoT.java
Log:
Repair the plugin, remove not needed exceptions.
Modified: trunk/plugins/Freetalk/FTBoard.java
===================================================================
--- trunk/plugins/Freetalk/FTBoard.java 2008-11-11 23:23:34 UTC (rev 23499)
+++ trunk/plugins/Freetalk/FTBoard.java 2008-11-11 23:47:17 UTC (rev 23500)
@@ -15,7 +15,6 @@
import com.db4o.query.Query;
import freenet.keys.FreenetURI;
-import freenet.support.UpdatableSortedLinkedListKilledException;
/**
* @author xor
@@ -103,7 +102,7 @@
* The job for this function is to find the right place in the
thread-tree for the new message and to move around older messages
* if a parent message of them is received.
*/
- public synchronized void addMessage(FTMessage newMessage) throws
UpdatableSortedLinkedListKilledException {
+ public synchronized void addMessage(FTMessage newMessage) {
synchronized(mMessageManager) {
db.store(newMessage);
db.commit();
@@ -139,7 +138,7 @@
}
}
- private synchronized void linkOrphansToNewParent(FTMessage newMessage)
throws UpdatableSortedLinkedListKilledException {
+ private synchronized void linkOrphansToNewParent(FTMessage newMessage) {
if(newMessage.isThread()) {
Iterator<FTMessage> absoluteOrphans =
absoluteOrphanIterator(newMessage.getURI());
while(absoluteOrphans.hasNext()){ /* Search in
the absolute orphans for messages which belong to this thread */
Modified: trunk/plugins/Freetalk/FTMessage.java
===================================================================
--- trunk/plugins/Freetalk/FTMessage.java 2008-11-11 23:23:34 UTC (rev
23499)
+++ trunk/plugins/Freetalk/FTMessage.java 2008-11-11 23:47:17 UTC (rev
23500)
@@ -13,7 +13,6 @@
import com.db4o.query.Query;
import freenet.keys.FreenetURI;
-import freenet.support.UpdatableSortedLinkedListKilledException;
/**
* @author saces, xor
@@ -187,7 +186,7 @@
return mParent;
}
- public synchronized void setParent(ObjectContainer db, FTMessage
newParent) throws UpdatableSortedLinkedListKilledException {
+ public synchronized void setParent(ObjectContainer db, FTMessage
newParent) {
/* TODO: assert(newParent contains at least one board which
mBoards contains) */
mParent = newParent;
store(db);
Modified: trunk/plugins/Freetalk/WoT/FTMessageManagerWoT.java
===================================================================
--- trunk/plugins/Freetalk/WoT/FTMessageManagerWoT.java 2008-11-11 23:23:34 UTC
(rev 23499)
+++ trunk/plugins/Freetalk/WoT/FTMessageManagerWoT.java 2008-11-11 23:47:17 UTC
(rev 23500)
@@ -8,13 +8,13 @@
import plugins.Freetalk.FTBoard;
import plugins.Freetalk.FTMessage;
import plugins.Freetalk.FTMessageManager;
+import plugins.Freetalk.exceptions.InvalidParameterException;
import com.db4o.ObjectContainer;
import freenet.keys.FreenetURI;
import freenet.support.Executor;
import freenet.support.Logger;
-import freenet.support.UpdatableSortedLinkedListKilledException;
public class FTMessageManagerWoT extends FTMessageManager {
@@ -36,7 +36,7 @@
/* FIXME: implement */
}
- private synchronized void onMessageReceived(String newMessageData)
throws UpdatableSortedLinkedListKilledException {
+ private synchronized void onMessageReceived(String newMessageData)
throws InvalidParameterException {
FTMessage newMessage = new FTMessage(null, null, null, null,
null, null, null, null, null);
String boardName = "";
/* FIXME: Store the description in FTOwnIdentity. We cannot
store in FTBoard because we want to allow per-identity customization */
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs