archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1484360 - /archiva/sandbox/trunk/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
Date Sun, 19 May 2013 22:25:41 GMT
Author: olamy
Date: Sun May 19 22:25:41 2013
New Revision: 1484360

URL: http://svn.apache.org/r1484360
Log:
fix non supported operation

Modified:
    archiva/sandbox/trunk/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java

Modified: archiva/sandbox/trunk/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
URL: http://svn.apache.org/viewvc/archiva/sandbox/trunk/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java?rev=1484360&r1=1484359&r2=1484360&view=diff
==============================================================================
--- archiva/sandbox/trunk/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
(original)
+++ archiva/sandbox/trunk/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
Sun May 19 22:25:41 2013
@@ -606,14 +606,14 @@ public class CassandraMetadataRepository
     @Override
     public boolean canObtainAccess( Class<?> aClass )
     {
-        // TODO
         return false;
     }
 
     @Override
-    public Object obtainAccess( Class<?> aClass )
+    public <T>T obtainAccess( Class<T> aClass )
         throws MetadataRepositoryException
     {
-        return null;  //To change body of implemented methods use File | Settings | File
Templates.
+        throw new IllegalArgumentException(
+            "Access using " + aClass + " is not supported on the cassandra metadata storage"
);
     }
 }



Mime
View raw message