|
12 | 12 |
|
13 | 13 | import java.io.IOException; |
14 | 14 | import java.util.List; |
| 15 | +import java.util.Objects; |
15 | 16 |
|
16 | 17 | @Value |
17 | 18 | @JsonDeserialize() |
@@ -69,7 +70,7 @@ public static <T> List<T> listFromLine(String line) { |
69 | 70 | return parse(line, TypeFactory.defaultInstance().constructCollectionType(List.class, Node.class)); |
70 | 71 | } |
71 | 72 |
|
72 | | - protected static <T> T parse(String line, JavaType type) { |
| 73 | + private static <T> T parse(String line, JavaType type) { |
73 | 74 | T result = null; |
74 | 75 | try { |
75 | 76 | if (!StringUtils.isBlank(line) && isValidJSON(line)) { |
@@ -102,15 +103,14 @@ public boolean equals(Object obj) { |
102 | 103 | } |
103 | 104 | Node node = (Node) obj; |
104 | 105 | return line == node.line && |
105 | | - column == node.column && |
106 | | - length == node.length && |
107 | | - name.equals(node.name) && |
108 | | - method.equals(node.method) && |
109 | | - domType.equals(node.domType) && |
110 | | - fileName.equals(node.fileName) && |
111 | | - fullName.equals(node.fullName) && |
112 | | - methodLine.equals(node.methodLine); |
113 | | - |
| 106 | + column == node.column && |
| 107 | + length == node.length && |
| 108 | + Objects.equals(name, node.name) && |
| 109 | + Objects.equals(method, node.method) && |
| 110 | + Objects.equals(domType, node.domType) && |
| 111 | + Objects.equals(fileName, node.fileName) && |
| 112 | + Objects.equals(fullName, node.fullName) && |
| 113 | + Objects.equals(methodLine, node.methodLine); |
114 | 114 | } |
115 | 115 |
|
116 | 116 | } |
0 commit comments