jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1461662 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java
Date Wed, 27 Mar 2013 15:47:24 GMT
Author: alexparvulescu
Date: Wed Mar 27 15:47:24 2013
New Revision: 1461662

URL: http://svn.apache.org/r1461662
Log:
OAK-723 ItemImpl - The type parameter T is hiding the type T

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java?rev=1461662&r1=1461661&r2=1461662&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java
Wed Mar 27 15:47:24 2013
@@ -66,14 +66,14 @@ abstract class ItemImpl<T extends ItemDe
         this.sessionDelegate = sessionContext.getSessionDelegate();
     }
 
-    protected abstract class ItemReadOperation<T> extends SessionOperation<T>
{
+    protected abstract class ItemReadOperation<U> extends SessionOperation<U>
{
         @Override
         protected void checkPreconditions() throws RepositoryException {
             checkAlive();
         }
     }
 
-    protected abstract class ItemWriteOperation<T> extends SessionOperation<T>
{
+    protected abstract class ItemWriteOperation<U> extends SessionOperation<U>
{
         @Override
         protected void checkPreconditions() throws RepositoryException {
             checkAlive();
@@ -84,12 +84,12 @@ abstract class ItemImpl<T extends ItemDe
     /**
      * Perform the passed {@link org.apache.jackrabbit.oak.jcr.ItemImpl.ItemReadOperation}.
      * @param op  operation to perform
-     * @param <T>  return type of the operation
+     * @param <U>  return type of the operation
      * @return  the result of {@code op.perform()}
      * @throws RepositoryException as thrown by {@code op.perform()}.
      */
     @CheckForNull
-    protected final <T> T perform(@Nonnull SessionOperation<T> op) throws RepositoryException
{
+    protected final <U> U perform(@Nonnull SessionOperation<U> op) throws RepositoryException
{
         return sessionDelegate.perform(op);
     }
 
@@ -98,11 +98,11 @@ abstract class ItemImpl<T extends ItemDe
      * {@code RepositoryException}. If it does, wrap it into and throw it as an
      * {@code IllegalArgumentException}.
      * @param op  operation to perform
-     * @param <T>  return type of the operation
+     * @param <U>  return type of the operation
      * @return  the result of {@code op.perform()}
      */
     @CheckForNull
-    protected final <T> T safePerform(@Nonnull SessionOperation<T> op) {
+    protected final <U> U safePerform(@Nonnull SessionOperation<U> op) {
         try {
             return sessionDelegate.perform(op);
         }



Mime
View raw message