1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.internal.macro.ctsreport; |
21 |
|
|
22 |
|
import org.apache.commons.lang3.builder.EqualsBuilder; |
23 |
|
import org.apache.commons.lang3.builder.HashCodeBuilder; |
24 |
|
import org.xwiki.text.XWikiToStringBuilder; |
25 |
|
|
26 |
|
|
27 |
|
@link |
28 |
|
|
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 6 |
Complexity Density: 0.6 |
|
32 |
|
public class Result |
33 |
|
{ |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
public String syntaxId; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
public boolean isSyntaxInputTest; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
public Test test; |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0 |
@Override... |
50 |
|
public String toString() |
51 |
|
{ |
52 |
0 |
return new XWikiToStringBuilder(this) |
53 |
|
.append("syntaxId", this.syntaxId) |
54 |
|
.append("test", this.test) |
55 |
|
.append("isSyntaxInputTest", this.isSyntaxInputTest) |
56 |
|
.toString(); |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 4 |
Complexity Density: 0.5 |
|
59 |
0 |
@Override... |
60 |
|
public boolean equals(Object object) |
61 |
|
{ |
62 |
0 |
if (object == null) { |
63 |
0 |
return false; |
64 |
|
} |
65 |
0 |
if (object == this) { |
66 |
0 |
return true; |
67 |
|
} |
68 |
0 |
if (object.getClass() != getClass()) { |
69 |
0 |
return false; |
70 |
|
} |
71 |
0 |
Result rhs = (Result) object; |
72 |
0 |
return new EqualsBuilder() |
73 |
|
.append(this.syntaxId, rhs.syntaxId) |
74 |
|
.append(this.test, rhs.test) |
75 |
|
.append(this.isSyntaxInputTest, rhs.isSyntaxInputTest) |
76 |
|
.isEquals(); |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0 |
@Override... |
80 |
|
public int hashCode() |
81 |
|
{ |
82 |
0 |
return new HashCodeBuilder(3, 17) |
83 |
|
.append(this.syntaxId) |
84 |
|
.append(this.test) |
85 |
|
.append(this.isSyntaxInputTest) |
86 |
|
.toHashCode(); |
87 |
|
} |
88 |
|
} |