Change return type to void since we throw an exception on failure,
otherwise it was successful.

Again, this is safe because that method could hardly be used by anyone.

Signed-off-by: Claudio Bley <[email protected]>
---
 src/main/java/org/libvirt/Connect.java |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/libvirt/Connect.java 
b/src/main/java/org/libvirt/Connect.java
index b26fca4..1b05f6f 100644
--- a/src/main/java/org/libvirt/Connect.java
+++ b/src/main/java/org/libvirt/Connect.java
@@ -307,14 +307,11 @@ public class Connect {
      *      
href="http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventDeregisterAny";>Libvirt
      *      Documentation</a>
      * @param callbackID
-     *            the callback to deregister
-     * @return 0 on success, -1 on failure
+     *            the callback identifier
      * @throws LibvirtException
      */
-    public int domainEventDeregisterAny(int callbackID) throws 
LibvirtException {
-        int returnValue = libvirt.virConnectDomainEventDeregisterAny(VCP, 
callbackID);
-        processError();
-        return returnValue;
+    public void domainEventDeregister(int callbackID) throws LibvirtException {
+        processError(libvirt.virConnectDomainEventDeregisterAny(VCP, 
callbackID));
     }
 
     /**
-- 
1.7.9.5

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to