Author: toad
Date: 2009-03-27 13:51:19 +0000 (Fri, 27 Mar 2009)
New Revision: 26229
Modified:
branches/db4o/freenet/src/freenet/keys/FreenetURI.java
Log:
Un-break FreenetURI
Modified: branches/db4o/freenet/src/freenet/keys/FreenetURI.java
===================================================================
--- branches/db4o/freenet/src/freenet/keys/FreenetURI.java 2009-03-27
13:34:30 UTC (rev 26228)
+++ branches/db4o/freenet/src/freenet/keys/FreenetURI.java 2009-03-27
13:51:19 UTC (rev 26229)
@@ -560,7 +560,7 @@
@Override
public String toString() {
if (toStringCache == null)
- toStringCache = toString(false, false) +
"#"+super.toString()+"#"+uniqueHashCode;
+ toStringCache = toString(false, false)/* +
"#"+super.toString()+"#"+uniqueHashCode*/;
return toStringCache;
}
@@ -894,6 +894,18 @@
return true;
}
+ public boolean objectCanUpdate(ObjectContainer container) {
+ if(!container.ext().isActive(this)) {
+ Logger.error(this, "Updating but not active!", new
Exception("error"));
+ return false;
+ }
+ return true;
+ }
+
+ public void objectOnDelete(ObjectContainer container) {
+ if(Logger.shouldLog(Logger.DEBUG, this)) Logger.minor(this,
"Deleting URI", new Exception("debug"));
+ }
+
public boolean isUSK() {
return "USK".equals(keyType);
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs