summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:36:04 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:22 +0200
commitda677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch)
tree9aa09066c95935117bf405b119ed9f89f448a54d /sc
parent14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff)
java: reduce scope, make fields private
found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/complex/dataPilot/_XDataPilotDescriptor.java14
-rw-r--r--sc/qa/complex/dataPilot/_XDataPilotTable.java10
-rw-r--r--sc/qa/complex/dataPilot/_XNamed.java2
-rw-r--r--sc/qa/complex/dataPilot/_XPropertySet.java10
4 files changed, 18 insertions, 18 deletions
diff --git a/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java b/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java
index 47960090b011..9971c74e0419 100644
--- a/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java
+++ b/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java
@@ -52,13 +52,13 @@ import lib.TestParameters;
*/
public class _XDataPilotDescriptor {
- public XDataPilotDescriptor oObj = null;
- CellRangeAddress CRA = new CellRangeAddress((short)1, 0, 0, 5, 5);
- CellRangeAddress oldCRA = null ;
- String sTag = new String ("XDataPilotDescriptor_Tag");
- String fieldsNames[];
- int fieldsAmount = 0;
- int tEnvFieldsAmount = 0;
+ private XDataPilotDescriptor oObj = null;
+ private CellRangeAddress CRA = new CellRangeAddress((short)1, 0, 0, 5, 5);
+ private CellRangeAddress oldCRA = null ;
+ private String sTag = new String ("XDataPilotDescriptor_Tag");
+ private String fieldsNames[];
+ private int fieldsAmount = 0;
+ private int tEnvFieldsAmount = 0;
/**
* The test parameters
diff --git a/sc/qa/complex/dataPilot/_XDataPilotTable.java b/sc/qa/complex/dataPilot/_XDataPilotTable.java
index 416afcd1f018..1f9d13357eaa 100644
--- a/sc/qa/complex/dataPilot/_XDataPilotTable.java
+++ b/sc/qa/complex/dataPilot/_XDataPilotTable.java
@@ -45,11 +45,11 @@ import lib.TestParameters;
*/
public class _XDataPilotTable {
- public XDataPilotTable oObj = null;
- XCell xCellForChange = null;
- XCell xCellForCheck = null;
- CellAddress OutputRange = null;
- int changeValue = 0;
+ private XDataPilotTable oObj = null;
+ private XCell xCellForChange = null;
+ private XCell xCellForCheck = null;
+ private CellAddress OutputRange = null;
+ private int changeValue = 0;
/**
* The test parameters
diff --git a/sc/qa/complex/dataPilot/_XNamed.java b/sc/qa/complex/dataPilot/_XNamed.java
index 4044f3d7712a..277971cbfe59 100644
--- a/sc/qa/complex/dataPilot/_XNamed.java
+++ b/sc/qa/complex/dataPilot/_XNamed.java
@@ -43,7 +43,7 @@ public class _XNamed {
/**
* The object that is testsed.
*/
- public XNamed oObj = null;
+ private XNamed oObj = null;
/**
* Constructor: gets the object to test, a logger and the test parameters
diff --git a/sc/qa/complex/dataPilot/_XPropertySet.java b/sc/qa/complex/dataPilot/_XPropertySet.java
index 470d83a13517..ea2cd95ddb7d 100644
--- a/sc/qa/complex/dataPilot/_XPropertySet.java
+++ b/sc/qa/complex/dataPilot/_XPropertySet.java
@@ -61,13 +61,13 @@ public class _XPropertySet {
/**
* Flag that indicates change listener was called.
*/
- boolean propertyChanged = false;
+ private boolean propertyChanged = false;
/**
* The own property change listener
*/
- XPropertyChangeListener PClistener = new MyChangeListener();
+ private XPropertyChangeListener PClistener = new MyChangeListener();
/**
* Listener that must be called on bound property changing.
@@ -86,12 +86,12 @@ public class _XPropertySet {
/**
* Flag that indicates veto listener was called.
*/
- boolean vetoableChanged = false;
+ private boolean vetoableChanged = false;
/**
* The own vetoable change listener
*/
- XVetoableChangeListener VClistener = new MyVetoListener();
+ private XVetoableChangeListener VClistener = new MyVetoListener();
/**
* Listener that must be called on constrained property changing.
@@ -110,7 +110,7 @@ public class _XPropertySet {
/**
* Properties to test
*/
- PropsToTest PTT = new PropsToTest();
+ private PropsToTest PTT = new PropsToTest();
/**
* Structure that collects three properties of each type to test :