You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by al...@apache.org on 2013/03/27 16:47:24 UTC
svn commit: r1461662 -
/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ItemImpl.java
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);
}