ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1496664 - in /ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository: impl/Artifact2FeatureAssociationRepositoryImpl.java stateful/impl/StatefulTargetObjectImpl.java
Date Tue, 25 Jun 2013 22:43:48 GMT
Author: marrs
Date: Tue Jun 25 22:43:48 2013
New Revision: 1496664

URL: http://svn.apache.org/r1496664
Log:
Small improvements to the implementation. No functional changes.

Modified:
    ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/Artifact2FeatureAssociationRepositoryImpl.java
    ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java

Modified: ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/Artifact2FeatureAssociationRepositoryImpl.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/Artifact2FeatureAssociationRepositoryImpl.java?rev=1496664&r1=1496663&r2=1496664&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/Artifact2FeatureAssociationRepositoryImpl.java
(original)
+++ ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/Artifact2FeatureAssociationRepositoryImpl.java
Tue Jun 25 22:43:48 2013
@@ -50,7 +50,7 @@ public class Artifact2FeatureAssociation
             return new Artifact2FeatureAssociationImpl(attributes, this, m_artifactRepository,
m_featureRepository);
         }
         catch (InvalidSyntaxException e) {
-            throw new IllegalArgumentException("Unable to create association: ", e);
+            throw new IllegalArgumentException("Unable to create association: " + e.getMessage(),
e);
         }
     }
 
@@ -60,7 +60,7 @@ public class Artifact2FeatureAssociation
             return new Artifact2FeatureAssociationImpl(attributes, tags, this, m_artifactRepository,
m_featureRepository);
         }
         catch (InvalidSyntaxException e) {
-            throw new IllegalArgumentException("Unable to create association: ", e);
+            throw new IllegalArgumentException("Unable to create association: " + e.getMessage(),
e);
         }
     }
 
@@ -70,7 +70,7 @@ public class Artifact2FeatureAssociation
             return new Artifact2FeatureAssociationImpl(reader, this, m_artifactRepository,
m_featureRepository);
         }
         catch (InvalidSyntaxException e) {
-            throw new IllegalArgumentException("Unable to create association: ", e);
+            throw new IllegalArgumentException("Unable to create association: " + e.getMessage(),
e);
         }
     }
 }

Modified: ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java?rev=1496664&r1=1496663&r2=1496664&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
(original)
+++ ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
Tue Jun 25 22:43:48 2013
@@ -714,4 +714,9 @@ public class StatefulTargetObjectImpl im
     public Comparator getComparator() {
         throw new UnsupportedOperationException("A StatefulTargetObject cannot return a comparator;
use the underlying TargetObject instead.");
     }
+    
+    @Override
+    public String toString() {
+    	return "StatefulTargetObjectImpl[" + getStatusAttribute(KEY_ID) + " " + getRegistrationState()
+ " " + getStoreState() + " " + getProvisioningState() + "]";
+    }
 }
\ No newline at end of file



Mime
View raw message