X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSoneImpl.java;h=08c104fc83a7687a2294ada1e68bc9b4e6a2f169;hp=86fe3d98c12327afe6ca83d1e331dbe70e7d8627;hb=210684b4bc499e298a0d0abeddd4008cdeb406bc;hpb=2b47186b72e30460a6710f95a76e4a99c305909a diff --git a/src/main/java/net/pterodactylus/sone/data/SoneImpl.java b/src/main/java/net/pterodactylus/sone/data/SoneImpl.java index 86fe3d9..08c104f 100644 --- a/src/main/java/net/pterodactylus/sone/data/SoneImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/SoneImpl.java @@ -59,7 +59,7 @@ public class SoneImpl implements Sone { private final boolean local; /** The identity of this Sone. */ - private Identity identity; + private final Identity identity; /** The URI under which the Sone is stored in Freenet. */ private volatile FreenetURI requestUri; @@ -110,13 +110,14 @@ public class SoneImpl implements Sone { /** * Creates a new Sone. * - * @param id - * The ID of the Sone + * @param identity + * The identity of the Sone * @param local * {@code true} if the Sone is a local Sone, {@code false} otherwise */ - public SoneImpl(String id, boolean local) { - this.id = id; + public SoneImpl(Identity identity, boolean local) { + this.id = identity.getId(); + this.identity = identity; this.local = local; }