- added missing @Override annotation
authorPatric Plitzner <p.plitzner@bgbm.org>
Wed, 4 Jun 2014 09:29:24 +0000 (09:29 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Wed, 4 Jun 2014 09:29:24 +0000 (09:29 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/labels/DefaultLabelStrategy.java

index 8ce48d376d7876e5480bf411bf1dc143a3e86997..4aaa2fef71a29266257006226967f6762c9eeb03 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.labels;
 
@@ -23,10 +23,11 @@ public class DefaultLabelStrategy implements ILabelImageStrategy {
         * @see eu.etaxonomy.taxeditor.editor.labels.IEditorLabelStrategy#getNameRelationTypeLabel(eu.etaxonomy.cdm.model.name.NameRelationshipType)
         */
        /** {@inheritDoc} */
-       public String getNameRelationTypeLabel(NameRelationshipType type) {
-               List<NameRelationshipType> vocab = 
+       @Override
+    public String getNameRelationTypeLabel(NameRelationshipType type) {
+               List<NameRelationshipType> vocab =
                        TermStore.getTerms(NameRelationshipType.class);
-       
+
                for (NameRelationshipType type1 : vocab) {
                        if (type1.equals(type)) {
                                return type1.getLabel();
@@ -34,14 +35,15 @@ public class DefaultLabelStrategy implements ILabelImageStrategy {
                }
                return "";
        }
-               
+
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.editor.labels.IEditorLabelStrategy#getNameRelationInverseTypeLabel(eu.etaxonomy.cdm.model.name.NameRelationshipType)
         */
        /** {@inheritDoc} */
-       public String getNameRelationTypeInverseLabel(NameRelationshipType type) {
-               
-               List<NameRelationshipType> vocab = 
+       @Override
+    public String getNameRelationTypeInverseLabel(NameRelationshipType type) {
+
+               List<NameRelationshipType> vocab =
                        TermStore.getTerms(NameRelationshipType.class);
 
                for (NameRelationshipType type1 : vocab) {
@@ -56,7 +58,8 @@ public class DefaultLabelStrategy implements ILabelImageStrategy {
         * @see eu.etaxonomy.taxeditor.editor.labels.ILabelImageStrategy#getNameRelationImage(eu.etaxonomy.cdm.model.name.NameRelationship)
         */
        /** {@inheritDoc} */
-       public Image getNameRelationTypeImage(NameRelationshipType type) {
+       @Override
+    public Image getNameRelationTypeImage(NameRelationshipType type) {
                if (NameRelationshipType.BASIONYM().equals(type)) {
                        return ImageResources.getImage(
                                        ImageResources.BASIONYM_ICON);
@@ -72,7 +75,8 @@ public class DefaultLabelStrategy implements ILabelImageStrategy {
         * @see eu.etaxonomy.taxeditor.labels.ILabelImageStrategy#getNameRelationDescription(eu.etaxonomy.cdm.model.name.NameRelationshipType)
         */
        /** {@inheritDoc} */
-       public String getNameRelationTypeDescription(NameRelationshipType type) {
+       @Override
+    public String getNameRelationTypeDescription(NameRelationshipType type) {
                if (NameRelationshipType.BASIONYM().equals(type)) {
                        return "Basionym";
                }