From 2dfe78ef3c2e5e69bb41d8db02eb433379d12fda Mon Sep 17 00:00:00 2001
Message-Id:
<2dfe78ef3c2e5e69bb41d8db02eb433379d12fda.1350037981.git.cbley(a)av-test.de>
In-Reply-To: <cover.1350037981.git.cbley(a)av-test.de>
References:
<2DA6F4A3691599408358374D182280F9141CF6(a)xmb-rcd-x04.cisco.com> <cover.1350037981.git.cbley(a)av-test.de>
From: cbley(a)av-test.de (Claudio Bley)
Date: Mon, 20 Aug 2012 16:50:00 +0200
Subject: [PATCH 06/15] Change visibility of class members to private to enforce
encapsulation.
To: libvir-list(a)redhat.com
Organization: AV-Test GmbH, Germany
---
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
--
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