summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/ui/event/DataAware.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-10 15:36:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-11 06:09:03 +0000
commit7557f23b31dcfb4d86c122bb34d9675c0db9a694 (patch)
tree5feb7be2b0841d8ee60d935cf2e29e9a01a31a27 /wizards/com/sun/star/wizards/ui/event/DataAware.java
parent808fd5fbd8868dfd95c8a38676815798fa2b79c4 (diff)
java: reduce visibility of fields and methods
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/event/DataAware.java')
-rw-r--r--wizards/com/sun/star/wizards/ui/event/DataAware.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/ui/event/DataAware.java b/wizards/com/sun/star/wizards/ui/event/DataAware.java
index 5b9ad62a537f..cc34373f04ee 100644
--- a/wizards/com/sun/star/wizards/ui/event/DataAware.java
+++ b/wizards/com/sun/star/wizards/ui/event/DataAware.java
@@ -38,12 +38,12 @@ public abstract class DataAware {
/**
* this is the data object.
*/
- protected Object dataObject;
+ private Object dataObject;
/**
* A Value Object knows how to get/set a value
* from/to the data object.
*/
- protected Value value;
+ private Value value;
/**
* creates a DataAware object for the given data object and Value object.
@@ -58,7 +58,7 @@ public abstract class DataAware {
/**
* returns the data object.
*/
- public Object getDataObject() {
+ private Object getDataObject() {
return dataObject;
}
@@ -69,7 +69,7 @@ public abstract class DataAware {
* another kind of Data is needed.
* @param newValue the new value to set to the DataObject.
*/
- protected void setToData(Object newValue) {
+ private void setToData(Object newValue) {
value.set(newValue,getDataObject());
}
@@ -79,7 +79,7 @@ public abstract class DataAware {
* the value object.
* @return the current value of the data object.
*/
- protected Object getFromData() {
+ private Object getFromData() {
return value.get(getDataObject());
}
@@ -99,7 +99,7 @@ public abstract class DataAware {
* enables
* @param currentValue
*/
- protected void enableControls(Object currentValue) {
+ private void enableControls(Object currentValue) {
}
/**
@@ -126,7 +126,7 @@ public abstract class DataAware {
* @param b second object to compare.
* @return true if both are null or both are equal.
*/
- protected boolean equals(Object a, Object b) {
+ private boolean equals(Object a, Object b) {
if (a == null && b == null)
return true;
if (a == null || b == null)