projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'next' into feature/album-and-image-links
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
PostPart.java
diff --git
a/src/main/java/net/pterodactylus/sone/text/PostPart.java
b/src/main/java/net/pterodactylus/sone/text/PostPart.java
index
0ceb592
..
c6ab534
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/text/PostPart.java
+++ b/
src/main/java/net/pterodactylus/sone/text/PostPart.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - PostPart.java - Copyright © 2011–201
2
David Roden
+ * Sone - PostPart.java - Copyright © 2011–201
3
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-26,39
+26,26
@@
import net.pterodactylus.sone.data.Post;
*/
public class PostPart implements Part {
*/
public class PostPart implements Part {
- /** The post this part refers to. */
private final Post post;
private final Post post;
+ private final boolean usesDeprecatedLink;
- /**
- * Creates a new post part.
- *
- * @param post
- * The referenced post
- */
public PostPart(Post post) {
public PostPart(Post post) {
- this
.post = post
;
+ this
(post, false)
;
}
}
- //
- // ACCESSORS
- //
+ public PostPart(Post post, boolean usesDeprecatedLink) {
+ this.post = post;
+ this.usesDeprecatedLink = usesDeprecatedLink;
+ }
- /**
- * Returns the post referenced by this part.
- *
- * @return The post referenced by this part
- */
public Post getPost() {
return post;
}
public Post getPost() {
return post;
}
- //
- // PART METHODS
- //
+ public boolean usesDeprecatedLink() {
+ return usesDeprecatedLink;
+ }
- /**
- * {@inheritDoc}
- */
@Override
public String getText() {
return post.getText();
@Override
public String getText() {
return post.getText();