summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-16 13:02:45 +0200
committerNoel Grandin <noel@peralex.com>2014-10-17 08:26:21 +0200
commit03c7c26cbe7d75f103515e62dc39103f11d4637f (patch)
treed2e3e75fd84ce6fcb58c3ccbb59d5a1a62990c47 /qadevOOo
parent12b01b920f42666db84c8be1c9b6fd89a86eea4e (diff)
java: final fields that can be static
Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/document/_XActionLockable.java2
-rw-r--r--qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java2
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java6
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java2
5 files changed, 7 insertions, 7 deletions
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.<p>
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. <p>
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. <p>
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. <p>
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;