jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1167118 - in /jackrabbit/sandbox/jackrabbit-mk: jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/util/ jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/
Date Fri, 09 Sep 2011 11:51:45 GMT
Author: mduerig
Date: Fri Sep  9 11:51:44 2011
New Revision: 1167118

URL: http://svn.apache.org/viewvc?rev=1167118&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP) 
refactor: helping the compiler

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/util/WeakIdentityCollection.java
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/Exceptions.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/util/WeakIdentityCollection.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/util/WeakIdentityCollection.java?rev=1167118&r1=1167117&r2=1167118&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/util/WeakIdentityCollection.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/util/WeakIdentityCollection.java
Fri Sep  9 11:51:44 2011
@@ -246,7 +246,7 @@ public class WeakIdentityCollection<E> i
         }
 
         for (int i = 0; i < size; i++) {
-            a[i] = cast(elementData.get(i).get());
+            a[i] = Unchecked.<T>cast(elementData.get(i).get());
         }
 
         if (a.length > size) {

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/Exceptions.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/Exceptions.java?rev=1167118&r1=1167117&r2=1167118&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/Exceptions.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/Exceptions.java
Fri Sep  9 11:51:44 2011
@@ -19,13 +19,13 @@
 
 package org.apache.jackrabbit.spi2microkernel.util;
 
-import static org.apache.jackrabbit.spi.commons.util.Unchecked.cast;
+import org.apache.jackrabbit.spi.commons.util.Unchecked;
 
 public final class Exceptions {
     private Exceptions() {}
 
     public static <E extends Throwable> E setCause(E exception, Throwable cause) {
-        return cast(exception.initCause(cause));
+        return Unchecked.<E>cast(exception.initCause(cause));
     }
 
 }



Mime
View raw message