jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r899391 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefWriter.java
Date Thu, 14 Jan 2010 20:16:46 GMT
Author: mduerig
Date: Thu Jan 14 20:16:42 2010
New Revision: 899391

URL: http://svn.apache.org/viewvc?rev=899391&view=rev
Log:
JCR-2467: Collection parameter of CompactNodeTypeDefWriter#write should be covariant

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefWriter.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefWriter.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefWriter.java?rev=899391&r1=899390&r2=899391&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefWriter.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefWriter.java
Thu Jan 14 20:16:42 2010
@@ -171,7 +171,7 @@
      * @param out output writer
      * @throws IOException if an I/O error occurs
      */
-    public static void write(Collection<QNodeTypeDefinition> defs,
+    public static void write(Collection<? extends QNodeTypeDefinition> defs,
                              NamespaceResolver r,
                              NamePathResolver npResolver,
                              Writer out)
@@ -204,7 +204,7 @@
      * @param defs node type definitions
      * @throws IOException if an I/O error occurs
      */
-    public void write(Collection<QNodeTypeDefinition> defs) throws IOException {
+    public void write(Collection<? extends QNodeTypeDefinition> defs) throws IOException
{
         for (QNodeTypeDefinition def : defs) {
             write(def);
         }



Mime
View raw message