Change in ovirt-engine-sdk-java[master]: sdk: implement AutoCloseable

mpastern at redhat.com mpastern at redhat.com
Tue Aug 27 07:28:53 UTC 2013


Michael Pasternak has submitted this change and it was merged.

Change subject: sdk: implement AutoCloseable
......................................................................


sdk: implement AutoCloseable

close() method is invoked automatically when API proxy is
managed by the try-with-resources statement

try (Api api = new Api(URL, ...)) {
  ...
} catch (Exception e) {
  ...
}

Change-Id: I15786f0f1857c54983602de1f312b234de99bca4
Signed-off-by: Michael pasternak <mpastern at redhat.com>
---
M ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/templates/ApiTemplate
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/Api.java
2 files changed, 22 insertions(+), 2 deletions(-)

Approvals:
  Michael Pasternak: Verified; Looks good to me, approved
  Mike Kolesnik: Looks good to me, but someone else must approve



-- 
To view, visit http://gerrit.ovirt.org/18538
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I15786f0f1857c54983602de1f312b234de99bca4
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>



More information about the Engine-commits mailing list