ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1503237 - /ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
Date Mon, 15 Jul 2013 13:37:27 GMT
Author: marrs
Date: Mon Jul 15 13:37:27 2013
New Revision: 1503237

URL: http://svn.apache.org/r1503237
Log:
Changed the implementation of these methods to not throw exceptions but provide standard behaviour
instead.

Modified:
    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/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=1503237&r1=1503236&r2=1503237&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
Mon Jul 15 13:37:27 2013
@@ -721,12 +721,12 @@ public class StatefulTargetObjectImpl im
     }
 
     public int getCardinality(Map<String, String> properties) {
-        throw new UnsupportedOperationException("A StatefulTargetObject cannot return a cardinality;
use the underlying TargetObject instead.");
+        return Integer.MAX_VALUE;
     }
 
     @SuppressWarnings("unchecked")
     public Comparator getComparator() {
-        throw new UnsupportedOperationException("A StatefulTargetObject cannot return a comparator;
use the underlying TargetObject instead.");
+        return null;
     }
     
     @Override



Mime
View raw message