[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [libvirt-java] [PATCH 03/10] Fix warnings about accessing static methods



java/org/libvirt/Error.java:217:
The static method wrap(int) from the type Error.ErrorDomain should be
accessed in a static way
---
 src/main/java/org/libvirt/Error.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/libvirt/Error.java b/src/main/java/org/libvirt/Error.java
index 114e758..6f68f57 100644
--- a/src/main/java/org/libvirt/Error.java
+++ b/src/main/java/org/libvirt/Error.java
@@ -213,9 +213,9 @@ public class Error implements Serializable {
     private NetworkPointer VNP; /* Deprecated */
 
     public Error(virError vError) {
-        code = code.wrap(vError.code);
-        domain = domain.wrap(vError.domain);
-        level = level.wrap(vError.level);
+        code = ErrorNumber.wrap(vError.code);
+        domain = ErrorDomain.wrap(vError.domain);
+        level = ErrorLevel.wrap(vError.level);
         message = vError.message;
         str1 = vError.str1;
         str2 = vError.str2;
-- 
1.8.5.2.msysgit.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]