Policy failures:
Code warning - failed on resource Article.java. Reason: The assignment to variable id has no effect, line 3 Override reason: d
This commit is contained in:
@@ -16,12 +16,12 @@ public class Article implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private int reference;
|
private int id;
|
||||||
private String title;
|
private String title;
|
||||||
private String topic;
|
private String topic;
|
||||||
private String URL_article;
|
private String URL_article;
|
||||||
private String mainAuthor;
|
private String mainAuthor;
|
||||||
private ArrayList<String> secondaryAuthor;
|
private ArrayList<String> secondaryAuthors;
|
||||||
|
|
||||||
private int state;
|
private int state;
|
||||||
|
|
||||||
@@ -30,29 +30,29 @@ public class Article implements Serializable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public Article() {
|
public Article() {
|
||||||
secondaryAuthor = new ArrayList<String>();
|
secondaryAuthors = new ArrayList<String>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Article(int reference, String title, String topic,
|
public Article(int reference, String title, String topic,
|
||||||
String url_article, String mainAuthor,
|
String url_article, String mainAuthor,
|
||||||
ArrayList<String> secondaryAuthor, int state) {
|
ArrayList<String> secondaryAuthor, int state) {
|
||||||
this.reference = reference;
|
this.id = id;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.topic = topic;
|
this.topic = topic;
|
||||||
URL_article = url_article;
|
this.URL_article = url_article;
|
||||||
this.mainAuthor = mainAuthor;
|
this.mainAuthor = mainAuthor;
|
||||||
this.secondaryAuthor = secondaryAuthor;
|
this.secondaryAuthors = secondaryAuthor;
|
||||||
this.state = state;
|
this.state = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy=GenerationType.AUTO)
|
@GeneratedValue(strategy=GenerationType.AUTO)
|
||||||
public int getReference() {
|
public int getId() {
|
||||||
return reference;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReference(int reference) {
|
public void setId(int id) {
|
||||||
this.reference = reference;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTitle() {
|
public String getTitle() {
|
||||||
@@ -87,12 +87,12 @@ public class Article implements Serializable {
|
|||||||
this.mainAuthor = mainAuthor;
|
this.mainAuthor = mainAuthor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<String> getSecondaryAuthor() {
|
public ArrayList<String> getSecondaryAuthors() {
|
||||||
return secondaryAuthor;
|
return secondaryAuthors;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSecondaryAuthor(ArrayList<String> secondaryAuthor) {
|
public void setSecondaryAuthors(ArrayList<String> secondaryAuthors) {
|
||||||
this.secondaryAuthor = secondaryAuthor;
|
this.secondaryAuthors = secondaryAuthors;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getState() {
|
public int getState() {
|
||||||
|
|||||||
Reference in New Issue
Block a user