projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90d193f
)
Remove setPosts() from Sone.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sun, 7 Dec 2014 09:52:57 +0000
(10:52 +0100)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sun, 7 Dec 2014 09:53:15 +0000
(10:53 +0100)
src/main/java/net/pterodactylus/sone/data/Sone.java
patch
|
blob
|
history
src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java
patch
|
blob
|
history
src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java
patch
|
blob
|
history
diff --git
a/src/main/java/net/pterodactylus/sone/data/Sone.java
b/src/main/java/net/pterodactylus/sone/data/Sone.java
index
4bde55b
..
2f529cb
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Sone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Sone.java
@@
-343,15
+343,6
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
List<Post> getPosts();
/**
List<Post> getPosts();
/**
- * Sets all posts of this Sone at once.
- *
- * @param posts
- * The new (and only) posts of this Sone
- * @return This Sone (for method chaining)
- */
- Sone setPosts(Collection<Post> posts);
-
- /**
* Adds the given post to this Sone. The post will not be added if its {@link
* Post#getSone() Sone} is not this Sone.
*
* Adds the given post to this Sone. The post will not be added if its {@link
* Post#getSone() Sone} is not this Sone.
*
diff --git
a/src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java
b/src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java
index
6352c10
..
ce224fd
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java
@@
-121,11
+121,6
@@
public class IdOnlySone implements Sone {
}
@Override
}
@Override
- public Sone setPosts(Collection<Post> posts) {
- return this;
- }
-
- @Override
public void addPost(Post post) {
}
public void addPost(Post post) {
}
diff --git
a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java
b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java
index
2479276
..
eb2fc6e
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java
+++ b/
src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java
@@
-363,17
+363,6
@@
public class SoneImpl implements LocalSone {
}
/**
}
/**
- * Sets all posts of this Sone at once.
- *
- * @param posts
- * The new (and only) posts of this Sone
- * @return This Sone (for method chaining)
- */
- public Sone setPosts(Collection<Post> posts) {
- return this;
- }
-
- /**
* Adds the given post to this Sone. The post will not be added if its {@link
* Post#getSone() Sone} is not this Sone.
*
* Adds the given post to this Sone. The post will not be added if its {@link
* Post#getSone() Sone} is not this Sone.
*