import static com.google.common.base.Preconditions.checkNotNull;
import static java.lang.String.format;
+import static java.util.logging.Logger.getLogger;
import java.net.MalformedURLException;
import java.util.ArrayList;
import net.pterodactylus.sone.data.SoneOptions.DefaultSoneOptions;
import net.pterodactylus.sone.freenet.wot.Identity;
import net.pterodactylus.sone.freenet.wot.OwnIdentity;
-import net.pterodactylus.util.logging.Logging;
import freenet.keys.FreenetURI;
public class SoneImpl implements Sone {
/** The logger. */
- private static final Logger logger = Logging.getLogger(SoneImpl.class);
+ private static final Logger logger = getLogger("Sone.Data");
/** The ID of this Sone. */
private final String id;
/** The identity of this Sone. */
private final Identity identity;
- /** The URI under which the Sone is stored in Freenet. */
- private volatile FreenetURI requestUri;
-
- /** The URI used to insert a new version of this Sone. */
- /* This will be null for remote Sones! */
- private volatile FreenetURI insertUri;
-
/** The latest edition of the Sone. */
private volatile long latestEdition;
/** {@inheritDoc} */
@Override
public String toString() {
- return getClass().getName() + "[identity=" + identity + ",requestUri=" + requestUri + ",insertUri(" + String.valueOf(insertUri).length() + "),friends(" + friendSones.size() + "),posts(" + posts.size() + "),replies(" + replies.size() + "),albums(" + getRootAlbum().getAlbums().size() + ")]";
+ return getClass().getName() + "[identity=" + identity + ",friends(" + friendSones.size() + "),posts(" + posts.size() + "),replies(" + replies.size() + "),albums(" + getRootAlbum().getAlbums().size() + ")]";
}
}