jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1524092 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/session/ItemImpl.java
Date Tue, 17 Sep 2013 15:06:34 GMT
Author: jukka
Date: Tue Sep 17 15:06:34 2013
New Revision: 1524092

URL: http://svn.apache.org/r1524092
Log:
OAK-141: issues related to Node.refresh() as opposed to Session.refresh()

Item.refresh() is not deprecated, so change the warning.

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/session/ItemImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/session/ItemImpl.java?rev=1524092&r1=1524091&r2=1524092&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/session/ItemImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/session/ItemImpl.java
Tue Sep 17 15:06:34 2013
@@ -289,7 +289,7 @@ abstract class ItemImpl<T extends ItemDe
      */
     @Override
     public void refresh(final boolean keepChanges) throws RepositoryException {
-        log.warn("Item#refresh is no longer supported. Please use Session#refresh");
+        log.warn("Item#refresh invokes Session#refresh!");
         perform(new SessionOperation<Void>() {
             @Override
             public Void perform() throws InvalidItemStateException {



Mime
View raw message