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 int reference;
|
||||
private int id;
|
||||
private String title;
|
||||
private String topic;
|
||||
private String URL_article;
|
||||
private String mainAuthor;
|
||||
private ArrayList<String> secondaryAuthor;
|
||||
private ArrayList<String> secondaryAuthors;
|
||||
|
||||
private int state;
|
||||
|
||||
@@ -30,29 +30,29 @@ public class Article implements Serializable {
|
||||
};
|
||||
|
||||
public Article() {
|
||||
secondaryAuthor = new ArrayList<String>();
|
||||
secondaryAuthors = new ArrayList<String>();
|
||||
}
|
||||
|
||||
public Article(int reference, String title, String topic,
|
||||
String url_article, String mainAuthor,
|
||||
ArrayList<String> secondaryAuthor, int state) {
|
||||
this.reference = reference;
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.topic = topic;
|
||||
URL_article = url_article;
|
||||
this.URL_article = url_article;
|
||||
this.mainAuthor = mainAuthor;
|
||||
this.secondaryAuthor = secondaryAuthor;
|
||||
this.secondaryAuthors = secondaryAuthor;
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.AUTO)
|
||||
public int getReference() {
|
||||
return reference;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setReference(int reference) {
|
||||
this.reference = reference;
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
@@ -87,12 +87,12 @@ public class Article implements Serializable {
|
||||
this.mainAuthor = mainAuthor;
|
||||
}
|
||||
|
||||
public ArrayList<String> getSecondaryAuthor() {
|
||||
return secondaryAuthor;
|
||||
public ArrayList<String> getSecondaryAuthors() {
|
||||
return secondaryAuthors;
|
||||
}
|
||||
|
||||
public void setSecondaryAuthor(ArrayList<String> secondaryAuthor) {
|
||||
this.secondaryAuthor = secondaryAuthor;
|
||||
public void setSecondaryAuthors(ArrayList<String> secondaryAuthors) {
|
||||
this.secondaryAuthors = secondaryAuthors;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
|
||||
Reference in New Issue
Block a user