[PATCH 06/15] Change visibility of class members to private to enforce encapsulation.

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

 



---
 src/main/java/org/libvirt/Error.java            |   24 +++++++++++------------
 src/main/java/org/libvirt/LibvirtException.java |    2 +-
 src/main/java/org/libvirt/Stream.java           |    2 +-
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/main/java/org/libvirt/Error.java b/src/main/java/org/libvirt/Error.java
index e3c3246..114e758 100644
--- a/src/main/java/org/libvirt/Error.java
+++ b/src/main/java/org/libvirt/Error.java
@@ -199,18 +199,18 @@ public class Error implements Serializable {
      */
     private static final long serialVersionUID = -4780109197014633842L;
 
-    ErrorNumber code;
-    ErrorDomain domain;
-    String message;
-    ErrorLevel level;
-    ConnectionPointer VCP; /* Deprecated */
-    DomainPointer VDP; /* Deprecated */
-    String str1;
-    String str2;
-    String str3;
-    int int1;
-    int int2;
-    NetworkPointer VNP; /* Deprecated */
+    private ErrorNumber code;
+    private ErrorDomain domain;
+    private String message;
+    private ErrorLevel level;
+    private ConnectionPointer VCP; /* Deprecated */
+    private DomainPointer VDP; /* Deprecated */
+    private String str1;
+    private String str2;
+    private String str3;
+    private int int1;
+    private int int2;
+    private NetworkPointer VNP; /* Deprecated */
 
     public Error(virError vError) {
         code = code.wrap(vError.code);
diff --git a/src/main/java/org/libvirt/LibvirtException.java b/src/main/java/org/libvirt/LibvirtException.java
index 5bd2d6e..f9546be 100644
--- a/src/main/java/org/libvirt/LibvirtException.java
+++ b/src/main/java/org/libvirt/LibvirtException.java
@@ -11,7 +11,7 @@ public class LibvirtException extends Exception {
 
     private static final long serialVersionUID = 5566904363426773529L;
 
-    Error virError;
+    private Error virError;
 
     LibvirtException(Error virError) {
         super(virError.getMessage());
diff --git a/src/main/java/org/libvirt/Stream.java b/src/main/java/org/libvirt/Stream.java
index 0056a78..06b67cf 100644
--- a/src/main/java/org/libvirt/Stream.java
+++ b/src/main/java/org/libvirt/Stream.java
@@ -12,7 +12,7 @@ public class Stream {
     /**
      * the native virStreamPtr.
      */
-    StreamPointer VSP;
+    private StreamPointer VSP;
 
     /**
      * The Connect Object that represents the Hypervisor of this Domain
-- 
1.7.9.5

-- 
AV-Test GmbH, Henricistraße 20, 04155 Leipzig, Germany
Phone: +49 341 265 310 19
Web:<http://www.av-test.org>

Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076)
Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern

--
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]