jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1174264 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml: SessionImporter.java SysViewImportHandler.java
Date Thu, 22 Sep 2011 17:00:41 GMT
Author: reschke
Date: Thu Sep 22 17:00:41 2011
New Revision: 1174264

URL: http://svn.apache.org/viewvc?rev=1174264&view=rev
Log:
generics, unneeded annotation

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SessionImporter.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SessionImporter.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SessionImporter.java?rev=1174264&r1=1174263&r2=1174264&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SessionImporter.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SessionImporter.java
Thu Sep 22 17:00:41 2011
@@ -64,7 +64,7 @@ public class SessionImporter implements 
      */
     private final ReferenceChangeTracker refTracker;
 
-    private final List<ProtectedItemImporter> pItemImporters = new ArrayList();
+    private final List<ProtectedItemImporter> pItemImporters = new ArrayList<ProtectedItemImporter>();
 
     /**
      * Currently active importer for protected nodes.
@@ -106,7 +106,7 @@ public class SessionImporter implements 
         parents.push(importTargetNode);
 
         if (config != null) {
-            List<ProtectedItemImporter> iList = (List<ProtectedItemImporter>)
config.getProtectedItemImporters();
+            List<? extends ProtectedItemImporter> iList = config.getProtectedItemImporters();
             for (ProtectedItemImporter importer : iList) {
                 if (importer.init(session, session, false, uuidBehavior, refTracker)) {
                     pItemImporters.add(importer);

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java?rev=1174264&r1=1174263&r2=1174264&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
Thu Sep 22 17:00:41 2011
@@ -40,7 +40,6 @@ import org.xml.sax.SAXException;
 /**
  * <code>SysViewImportHandler</code>  ...
  */
-@SuppressWarnings({"ThrowableInstanceNeverThrown"})
 class SysViewImportHandler extends TargetImportHandler {
 
     /**



Mime
View raw message