projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always use the correct length of the scheme.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
impl
/
DefaultSone.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/impl/DefaultSone.java
b/src/main/java/net/pterodactylus/sone/data/impl/DefaultSone.java
index
3abd1d4
..
08a9ac1
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/impl/DefaultSone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/impl/DefaultSone.java
@@
-88,7
+88,7
@@
public class DefaultSone implements Sone {
private volatile Profile profile = new Profile(this);
/** The client used by the Sone. */
private volatile Profile profile = new Profile(this);
/** The client used by the Sone. */
- private
volatile
Client client;
+ private
final
Client client;
/** Whether this Sone is known. */
private volatile boolean known;
/** Whether this Sone is known. */
private volatile boolean known;
@@
-122,10
+122,11
@@
public class DefaultSone implements Sone {
* @param local
* {@code true} if the Sone is a local Sone, {@code false} otherwise
*/
* @param local
* {@code true} if the Sone is a local Sone, {@code false} otherwise
*/
- public DefaultSone(Database database, String id, boolean local) {
+ public DefaultSone(Database database, String id, boolean local
, Client client
) {
this.database = database;
this.id = id;
this.local = local;
this.database = database;
this.id = id;
this.local = local;
+ this.client = client;
rootAlbum = new DefaultAlbumBuilder(database, this, null).build();
}
rootAlbum = new DefaultAlbumBuilder(database, this, null).build();
}
@@
-223,11
+224,6
@@
public class DefaultSone implements Sone {
return client;
}
return client;
}
- public Sone setClient(Client client) {
- this.client = client;
- return this;
- }
-
public boolean isKnown() {
return known;
}
public boolean isKnown() {
return known;
}
@@
-323,11
+319,6
@@
public class DefaultSone implements Sone {
return likedPostIds.contains(postId);
}
return likedPostIds.contains(postId);
}
- public Sone addLikedPostId(String postId) {
- likedPostIds.add(postId);
- return this;
- }
-
public Sone removeLikedPostId(String postId) {
likedPostIds.remove(postId);
return this;
public Sone removeLikedPostId(String postId) {
likedPostIds.remove(postId);
return this;