Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89AE21086F for ; Mon, 6 May 2013 09:51:39 +0000 (UTC) Received: (qmail 20234 invoked by uid 500); 6 May 2013 09:51:38 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 20096 invoked by uid 500); 6 May 2013 09:51:36 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 20060 invoked by uid 99); 6 May 2013 09:51:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 09:51:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 09:51:32 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4A34D238899C; Mon, 6 May 2013 09:51:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1479508 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java Date: Mon, 06 May 2013 09:51:11 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130506095111.4A34D238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bdelacretaz Date: Mon May 6 09:51:10 2013 New Revision: 1479508 URL: http://svn.apache.org/r1479508 Log: Clarify that close() can be called multiple times, as verified by ResourceResolverImplTest.testClose Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java?rev=1479508&r1=1479507&r2=1479508&view=diff ============================================================================== --- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java (original) +++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java Mon May 6 09:51:10 2013 @@ -494,7 +494,8 @@ public interface ResourceResolver extend * Close this resource resolver. This method should be called by clients * when the resource resolver is not used anymore. Once this method has been * called, the resource resolver is considered unusable and will throw - * exceptions if still used. + * exceptions if still used - with the exception of this method, which + * can be called several times with no ill effects. * * @since 2.1 */