summaryrefslogtreecommitdiffstats
path: root/src/cppcheckplus/text/DeflectRow.java
blob: 5b113a675d16abc6e32691a09f724a7e3aac3015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
已复制!
package cppcheckplus.text; public class DeflectRow { public DeflectRow(String until, String file, String line, String level, String type, String cwe, String description,int issure) { super(); this.until = until; this.file = file; this.line = line; this.level = level; this.type = type; this.cwe = cwe; this.description = description; this.issure = issure; } @Override public String toString() { return "DeflectRow [until=" + until + ", file=" + file + ", line=" + line + ", level=" + level + ", type=" + type + ", cwe=" + cwe + ", description=" + description + "]"; } private String until = null; public String getUntil() { return until; } public void setUntil(String until) { this.until = until; } public String getFile() { return file; } public void setFile(String file) { this.file = file; } public String getLine() { return line; } public void setLine(String line) { this.line = line; } public String getLevel() { return level; } public void setLevel(String level) { this.level = level; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getCwe() { return cwe; } public void setCwe(String cwe) { this.cwe = cwe; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public int getIssure() { return issure; } public void setIssure(int issure) { this.issure = issure; } private String file = null; private String line = null; private String level = null; private String type = null; private String cwe = null; private String description = null; private int issure = 0; //0是未确认, 1是确认正确, 2是确认误报 @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((file == null) ? 0 : file.hashCode()); result = prime * result + ((level == null) ? 0 : level.hashCode()); result = prime * result + ((line == null) ? 0 : line.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DeflectRow other = (DeflectRow) obj; if (file == null) { if (other.file != null) return false; } else if (!file.equals(other.file)) return false; if (level == null) { if (other.level != null) return false; } else if (!level.equals(other.level)) return false; if (line == null) { if (other.line != null) return false; } else if (!line.equals(other.line)) return false; if (type == null) { if (other.type != null) return false; } else if (!type.equals(other.type)) return false; if (until == null) { if (other.until != null) return false; } else if (until.equals(other.until)) return false; return true; } }