From da677dfd59c2b551f3335ee0a5d5dfb33f9869c5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Aug 2014 11:36:04 +0200 Subject: java: reduce scope, make fields private found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6 --- sc/qa/complex/dataPilot/_XDataPilotDescriptor.java | 14 +++++++------- sc/qa/complex/dataPilot/_XDataPilotTable.java | 10 +++++----- sc/qa/complex/dataPilot/_XNamed.java | 2 +- sc/qa/complex/dataPilot/_XPropertySet.java | 10 +++++----- 4 files changed, 18 insertions(+), 18 deletions(-) (limited to 'sc/qa/complex') 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 : -- cgit