]> source.dussan.org Git - archiva.git/commitdiff
Add toString() override to improve debugging
authorJames William Dumay <jdumay@apache.org>
Thu, 26 Feb 2009 04:09:11 +0000 (04:09 +0000)
committerJames William Dumay <jdumay@apache.org>
Thu, 26 Feb 2009 04:09:11 +0000 (04:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-with-new-repoapi@748001 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/api/Status.java

index 8a3fd2e86e61e709da81254e94e412a5f8c1cce6..013f0bfe69b8f376e16872b917d987d6b3b6fd6f 100644 (file)
@@ -173,6 +173,16 @@ public final class Status
         return status;
     }
 
+    @Override
+    public String toString()
+    {
+        if (getResourceType() != null && getName() != null)
+        {
+            return "Name: " + getName() + " Type: " + getResourceType();
+        }
+        return super.toString();
+    }
+
     /**
      * Comparator for Status names
      */