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

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



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 av-test de>
> ---
>  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 redhat com
> https://www.redhat.com/mailman/listinfo/libvir-list
> 


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