]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/diff/DiffMissing.java
Diff Key
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / diff / DiffMissing.java
index da4476660f02b4ef41d38c802941528e04b4be8f..fe2ab106f9a49caed4609e9c9c7085b267ff0638 100644 (file)
@@ -6,24 +6,19 @@ package org.argeo.slc.diff;
  * 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