diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index 849c5597e12d..6c1366a1d168 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -45,7 +45,7 @@ import com.sun.star.uno.AnyConverter;
public class TestCaseOldAPI extends ComplexTestCase {
// The name of the tested service
- private final String testedServiceName =
+ private static final String testedServiceName =
"com.sun.star.chart.ChartDocument";
// The first of the mandatory functions:
diff --git a/connectivity/qa/complex/connectivity/dbase/DBaseDateFunctions.java b/connectivity/qa/complex/connectivity/dbase/DBaseDateFunctions.java
index 471cf8a8c9c3..85975b481674 100644
--- a/connectivity/qa/complex/connectivity/dbase/DBaseDateFunctions.java
+++ b/connectivity/qa/complex/connectivity/dbase/DBaseDateFunctions.java
@@ -28,7 +28,7 @@ import complex.connectivity.SubTestCase;
public class DBaseDateFunctions extends SubTestCase
{
- private final String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'";
+ private static final String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'";
private final XMultiServiceFactory m_xORB;
public DBaseDateFunctions(final XMultiServiceFactory _xORB, final TestCase i_testCase)
diff --git a/connectivity/qa/complex/connectivity/dbase/DBaseNumericFunctions.java b/connectivity/qa/complex/connectivity/dbase/DBaseNumericFunctions.java
index 4006910d64ea..218f02b0af86 100644
--- a/connectivity/qa/complex/connectivity/dbase/DBaseNumericFunctions.java
+++ b/connectivity/qa/complex/connectivity/dbase/DBaseNumericFunctions.java
@@ -27,7 +27,7 @@ import complex.connectivity.TestCase;
public class DBaseNumericFunctions extends SubTestCase
{
- private final String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'";
+ private static final String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'";
private final XMultiServiceFactory m_xORB;
public DBaseNumericFunctions(final XMultiServiceFactory _xORB, final TestCase i_testCase)
diff --git a/extensions/qa/integration/extensions/ObjectInspector.java b/extensions/qa/integration/extensions/ObjectInspector.java
index 197f746b92a0..5e34e7226fa3 100644
--- a/extensions/qa/integration/extensions/ObjectInspector.java
+++ b/extensions/qa/integration/extensions/ObjectInspector.java
@@ -34,7 +34,7 @@ public class ObjectInspector extends complexlib.ComplexTestCase
private XMultiServiceFactory m_orb;
private Frame m_desktop;
- final private String m_inspectorFrameName = "ObjectInspector";
+ static final private String m_inspectorFrameName = "ObjectInspector";
/* ------------------------------------------------------------------ */
@Override
diff --git a/forms/qa/integration/forms/FormControlTest.java b/forms/qa/integration/forms/FormControlTest.java
index b02dc564a5fb..f697bc70b7f4 100644
--- a/forms/qa/integration/forms/FormControlTest.java
+++ b/forms/qa/integration/forms/FormControlTest.java
@@ -58,7 +58,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
private String m_sImageURL;
private SQLErrorEvent m_mostRecentErrorEvent;
- private final String m_dataSourceName = "integration.forms.FormControlTest";
+ private static final String m_dataSourceName = "integration.forms.FormControlTest";
/* ------------------------------------------------------------------ */
@Override
diff --git a/forms/qa/integration/forms/ListBox.java b/forms/qa/integration/forms/ListBox.java
index 96a9d72a4a42..fc60b48376e9 100644
--- a/forms/qa/integration/forms/ListBox.java
+++ b/forms/qa/integration/forms/ListBox.java
@@ -44,7 +44,7 @@ import connectivity.tools.sdb.Connection;
public class ListBox extends TestCase
{
HsqlDatabase m_database = null;
- private final String m_foreignKeyTableName = "foreign_keys";
+ private static final String m_foreignKeyTableName = "foreign_keys";
public ListBox()
{
diff --git a/framework/qa/complex/XUserInputInterception/EventTest.java b/framework/qa/complex/XUserInputInterception/EventTest.java
index 24a78cb13711..350a2216e5d1 100644
--- a/framework/qa/complex/XUserInputInterception/EventTest.java
+++ b/framework/qa/complex/XUserInputInterception/EventTest.java
@@ -85,7 +85,7 @@ public class EventTest {
* define the miliseconds to wait until a EventTrigger
thread should
* be finished with its work
*/
- final int m_threadWait = 3000;
+ static final int m_threadWait = 3000;
// test environment
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/ComponentBase.java b/javaunohelper/com/sun/star/lib/uno/helper/ComponentBase.java
index 0f222d7d3506..783c1d0cfcc2 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/ComponentBase.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/ComponentBase.java
@@ -27,7 +27,7 @@ import com.sun.star.uno.Type;
*/
public class ComponentBase extends WeakBase implements XComponent
{
- private final boolean DEBUG= false;
+ private static final boolean DEBUG= false;
protected MultiTypeInterfaceContainer listenerContainer;
protected boolean bInDispose= false;
protected boolean bDisposed= false;
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
index c867cad5d439..c51475e4cd12 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
@@ -87,7 +87,7 @@ import com.sun.star.uno.UnoRuntime;
*/
public class InterfaceContainer implements Cloneable
{
- final boolean DEBUG= false;
+ static final boolean DEBUG= false;
/**
* The array buffer into which the elements of the ArrayList are stored.
* The capacity of the ArrayList is the length of this array buffer.
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/EvolutionarySolverStatusUno.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/EvolutionarySolverStatusUno.java
index aa9f46d1f3ad..024e90978205 100644
--- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/EvolutionarySolverStatusUno.java
+++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/EvolutionarySolverStatusUno.java
@@ -67,7 +67,7 @@ public class EvolutionarySolverStatusUno extends BaseDialog
private final ResourceManager resourceManager;
- private final int COLOR_RED = 0xFF0000;
+ private static final int COLOR_RED = 0xFF0000;
public EvolutionarySolverStatusUno(XComponentContext xContext) {
super(xContext, "Solver Status", -1, -1, 170, 95); //center the dialog on the parent
diff --git a/odk/examples/DevelopersGuide/Charts/CalcHelper.java b/odk/examples/DevelopersGuide/Charts/CalcHelper.java
index ca9ea94438d3..50364bdc0fbd 100644
--- a/odk/examples/DevelopersGuide/Charts/CalcHelper.java
+++ b/odk/examples/DevelopersGuide/Charts/CalcHelper.java
@@ -339,8 +339,8 @@ public class CalcHelper
// __________ private members and methods __________
- private final String msDataSheetName = "Data";
- private final String msChartSheetName = "Chart";
+ private static final String msDataSheetName = "Data";
+ private static final String msChartSheetName = "Chart";
private XSpreadsheetDocument maSpreadSheetDoc;
diff --git a/odk/examples/DevelopersGuide/Charts/ChartHelper.java b/odk/examples/DevelopersGuide/Charts/ChartHelper.java
index 19d1ede85c45..043635fe169e 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartHelper.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartHelper.java
@@ -235,7 +235,7 @@ public class ChartHelper
// __________ private members and methods __________
- private final String msChartClassID = "12dcae26-281f-416f-a234-c3086127382e";
+ private static final String msChartClassID = "12dcae26-281f-416f-a234-c3086127382e";
private XModel maContainerDocument;
}
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index f814deb16193..e184400d8fb9 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -165,9 +165,9 @@ public class DialogComponent {
"Event Object = " + aEventObject );
}
- private final String aHandlerMethod1 = "doit1";
- private final String aHandlerMethod2 = "doit2";
- private final String aHandlerMethod3 = "doit3";
+ private static final String aHandlerMethod1 = "doit1";
+ private static final String aHandlerMethod2 = "doit2";
+ private static final String aHandlerMethod3 = "doit3";
//XDialogEventHandler
public boolean callHandlerMethod( /*IN*/XDialog xDialog, /*IN*/Object EventObject, /*IN*/String MethodName ) {
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java
index 8ce14f408a92..f919ff308996 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java
@@ -81,5 +81,5 @@ public class TextTransferable implements XTransferable
// members
private final String text;
- private final String UNICODE_CONTENT_TYPE = "text/plain;charset=utf-16";
+ private static final String UNICODE_CONTENT_TYPE = "text/plain;charset=utf-16";
}
diff --git a/qadevOOo/tests/java/ifc/document/_XActionLockable.java b/qadevOOo/tests/java/ifc/document/_XActionLockable.java
index f8952ee578c5..8276eb62ad8d 100644
--- a/qadevOOo/tests/java/ifc/document/_XActionLockable.java
+++ b/qadevOOo/tests/java/ifc/document/_XActionLockable.java
@@ -82,7 +82,7 @@ public class _XActionLockable extends MultiMethodTest {
tRes.tested("setActionLocks()", true);
}
- final short nLock = 8;
+ static final short nLock = 8;
/**
* Calls the method and checks returned value.
diff --git a/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java b/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java index 63daab6f2619..c6bcbd886071 100644 --- a/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java +++ b/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java @@ -52,7 +52,7 @@ public class _XEventAttacherManager extends MultiMethodTest { */ public XEventAttacherManager oObj = null; - private final int index = 0; + private static final int index = 0; /** * Test calls the method and stores index of new entry.
diff --git a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java index f7ea1453c80e..d8b0bf69e234 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java @@ -206,9 +206,9 @@ public class _XDatabaseRange extends MultiMethodTest { oldVal == valBeforeRefresh); } - final short COL = 0; - final short STARTROW = 0; - final short ENDROW = 5; + static final short COL = 0; + static final short STARTROW = 0; + static final short ENDROW = 5; /** * Test creates new cell range address and calls the method.
diff --git a/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java b/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java index 963cbf7aaa8e..c70719babe53 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java @@ -38,7 +38,7 @@ import com.sun.star.sheet.XViewSplitable; public class _XViewSplitable extends MultiMethodTest { public XViewSplitable oObj = null; - protected final int posX = 101, posY = 51; + protected static final int posX = 101, posY = 51; /** * Test just calls the method.
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
index 86eeeadcb357..d3cfde832908 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
@@ -52,7 +52,7 @@ public class OQueryDesign extends TestCase {
private static XDesktop xDesk;
private static XFrame xFrame;
- private final String sDataSourceName = "Bibliography";
+ private static final String sDataSourceName = "Bibliography";
private static XConnection xConn;
private static XTextDocument xTextDoc;
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/SOFormulaOpCodeMapper.java b/reportbuilder/java/org/libreoffice/report/pentaho/SOFormulaOpCodeMapper.java
index ff0aca9a308f..977c96e0a221 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/SOFormulaOpCodeMapper.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/SOFormulaOpCodeMapper.java
@@ -34,8 +34,8 @@ public final class SOFormulaOpCodeMapper extends WeakBase
private static final String __serviceName = "org.libreoffice.report.pentaho.SOFormulaOpCodeMapper";
private final SOFormulaParser parser;
// attributes
- final private int m_OpCodeExternal = 0;
- final private int m_OpCodeUnknown = 0;
+ static final private int m_OpCodeExternal = 0;
+ static final private int m_OpCodeUnknown = 0;
public SOFormulaOpCodeMapper(SOFormulaParser parser)
{
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
index 514af0001e03..d639e3669433 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
@@ -145,7 +145,7 @@ public class PlainSourceView extends JScrollPane implements
class GlyphGutter extends JComponent {
private PlainSourceView view;
- private final String DUMMY_STRING = "99";
+ private static final String DUMMY_STRING = "99";
GlyphGutter(PlainSourceView view) {
this.view = view;
diff --git a/sot/qa/complex/olesimplestorage/Test01.java b/sot/qa/complex/olesimplestorage/Test01.java
index c4359d7c1415..c07eb2283803 100644
--- a/sot/qa/complex/olesimplestorage/Test01.java
+++ b/sot/qa/complex/olesimplestorage/Test01.java
@@ -30,8 +30,8 @@ public class Test01 implements OLESimpleStorageTest
{
XMultiServiceFactory m_xMSF = null;
TestHelper m_aTestHelper = null;
- final int pStreamCnt = 5;
- final int pBytesCnt = 10;
+ static final int pStreamCnt = 5;
+ static final int pBytesCnt = 10;
public Test01 ( XMultiServiceFactory xMSF )
{
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
index aa95ea4a6016..2e262fb37356 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
@@ -35,7 +35,7 @@ import com.sun.star.uno.XComponentContext;
public class WikiEditSettingDialog extends WikiDialog
{
- private final String sOKMethod = "OK";
+ private static final String sOKMethod = "OK";
private String[] Methods = {sOKMethod };
private Map