API change: CoreInstance.close() doesn't throw ClientException anymore
----------------------------------------------------------------------

                 Key: NXP-2336
                 URL: http://jira.nuxeo.org/browse/NXP-2336
             Project: Nuxeo Enterprise Platform 5
          Issue Type: Improvement
            Reporter: Stéfane Fermigier
            Assignee: Thierry Delprat
             Fix For: 5.2 M1


The close method on CoreInstance doesn't declare that it throws ClientException 
anymore (it actually doesn't throw it in the body of the method):

--- a/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/CoreInstance.java Sat 
Apr 19 18:35:32 2008 +0200
+++ b/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/CoreInstance.java Sun 
Apr 20 00:42:42 2008 +0200
@@ -157,7 +157,7 @@ public class CoreInstance implements Ser
return sessions.remove(sid);
}
- public void close(CoreSession client) throws ClientException {
+ public void close(CoreSession client) {
client = sessions.remove(client.getSessionId());
if (client != null) {
client.destroy(); 

Code that uses this method could be then simplified:

http://hg.nuxeo.org/nuxeo/nuxeo-platform/rev/2c7110a38f3f
http://hg.nuxeo.org/nuxeo/nuxeo-platform/rev/f93833954cc5

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to