* the reached it means that it is missing from the reached. If the value is\r
* null it means that the entire line is missing.\r
*/\r
-public class DiffMissing extends DiffIssue {\r
- private final DiffKey key;\r
+public class DiffMissing extends DiffIssueKey {\r
\r
public DiffMissing(DiffPosition position, DiffKey key) {\r
super(position);\r
- this.key = key;\r
- }\r
-\r
- public Object getKey() {\r
- return key;\r
+ super.key = key;\r
}\r
\r
@Override\r
public String toString() {\r
if (position.relatedFile == RelatedFile.EXPECTED) {\r
- return position + ": left over " + key;\r
+ return position + ": left over " + super.toString();\r
} else if (position.relatedFile == RelatedFile.REACHED) {\r
- return position + ": missing " + key;\r
+ return position + ": missing " + super.toString();\r
}\r
return super.toString();\r
}\r