Re: [libvirt-java] [PATCH 02/65] Fix warnings about accessing static methods

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

 



On Thu, Feb 13, 2014 at 04:22:10PM +0100, Claudio Bley wrote:
> java/org/libvirt/Error.java:217:
> The static method wrap(int) from the type Error.ErrorDomain should be
> accessed in a static way
> 
> Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
> ---
>  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;

ACK (from a non Java expert).
 -- Guido

> -- 
> 1.7.9.5
> 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]