@@ -15,11 +15,6 @@ public class Post {
1515 */
1616 private String title ;
1717
18- /**
19- * Full article.
20- */
21- private String article ;
22-
2318 /**
2419 * Author of the post.
2520 */
@@ -49,25 +44,6 @@ public void setTitle(String title) {
4944 this .title = title ;
5045 }
5146
52- /**
53- * Gets the {@link #article}.
54- *
55- * @return the {@link #article}
56- */
57- public String getArticle () {
58- return article ;
59- }
60-
61- /**
62- * Sets the {@link #article}.
63- *
64- * @param article
65- * the new {@link #article}
66- */
67- public void setArticle (String article ) {
68- this .article = article ;
69- }
70-
7147 /**
7248 * Gets the {@link #author}.
7349 *
@@ -115,7 +91,6 @@ public void setTags(List<String> tags) {
11591 public int hashCode () {
11692 final int prime = 31 ;
11793 int result = 1 ;
118- result = prime * result + ((article == null ) ? 0 : article .hashCode ());
11994 result = prime * result + ((author == null ) ? 0 : author .hashCode ());
12095 result = prime * result + ((tags == null ) ? 0 : tags .hashCode ());
12196 result = prime * result + ((title == null ) ? 0 : title .hashCode ());
@@ -136,11 +111,6 @@ public boolean equals(Object obj) {
136111 if (getClass () != obj .getClass ())
137112 return false ;
138113 Post other = (Post ) obj ;
139- if (article == null ) {
140- if (other .article != null )
141- return false ;
142- } else if (!article .equals (other .article ))
143- return false ;
144114 if (author == null ) {
145115 if (other .author != null )
146116 return false ;
@@ -166,7 +136,7 @@ public boolean equals(Object obj) {
166136 */
167137 @ Override
168138 public String toString () {
169- return "Post [title=" + title + ", article=" + article + ", author=" + author + ", tags=" + tags + "]" ;
139+ return "Post [title=" + title + ", author=" + author + ", tags=" + tags + "]" ;
170140 }
171141
172142}
0 commit comments