diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-12 13:25:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-12 15:46:57 +0000 |
commit | 268f4d179c50bc0c1fb09cdb3ce048da1f575dbc (patch) | |
tree | f1a934263430d2247e3a8d4d9c2803ecbdf6b858 /qadevOOo/runner | |
parent | 246cd66af254687628b7cbd5aa64cb9bfa87f28d (diff) |
runner: 'static final' to declare constants when it isn't an interface
Change-Id: Iea1e672e5468b66fd1ba5389bd781f03d0c7f419
Reviewed-on: https://gerrit.libreoffice.org/11931
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r-- | qadevOOo/runner/util/BookmarkDsc.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/ControlDsc.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/FootnoteDsc.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/FrameDsc.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/ParagraphDsc.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/ReferenceMarkDsc.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/ShapeDsc.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/StyleFamilyDsc.java | 6 | ||||
-rw-r--r-- | qadevOOo/runner/util/TableDsc.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/TextSectionDsc.java | 4 |
10 files changed, 19 insertions, 19 deletions
diff --git a/qadevOOo/runner/util/BookmarkDsc.java b/qadevOOo/runner/util/BookmarkDsc.java index 6772f1ce4cc1..3f4b8943b714 100644 --- a/qadevOOo/runner/util/BookmarkDsc.java +++ b/qadevOOo/runner/util/BookmarkDsc.java @@ -27,8 +27,8 @@ import com.sun.star.text.XTextContent; */ public class BookmarkDsc extends InstDescr { - private final String service = "com.sun.star.text.Bookmark"; - private String ifcName = "com.sun.star.text.XTextContent"; + private static final String service = "com.sun.star.text.Bookmark"; + private static final String ifcName = "com.sun.star.text.XTextContent"; private String name = null; diff --git a/qadevOOo/runner/util/ControlDsc.java b/qadevOOo/runner/util/ControlDsc.java index 8a99b70645b8..e5eb0d2ea62b 100644 --- a/qadevOOo/runner/util/ControlDsc.java +++ b/qadevOOo/runner/util/ControlDsc.java @@ -29,7 +29,7 @@ import com.sun.star.uno.UnoRuntime; public class ControlDsc extends InstDescr { private String name = null; - final String ifcName = "com.sun.star.form.XFormComponent"; + static final String ifcName = "com.sun.star.form.XFormComponent"; String service = "com.sun.star.form.component.CommandButton"; public ControlDsc( String kind ) { diff --git a/qadevOOo/runner/util/FootnoteDsc.java b/qadevOOo/runner/util/FootnoteDsc.java index 7ff9f6b7a42a..dc0574157324 100644 --- a/qadevOOo/runner/util/FootnoteDsc.java +++ b/qadevOOo/runner/util/FootnoteDsc.java @@ -27,8 +27,8 @@ import com.sun.star.text.XTextContent; */ public class FootnoteDsc extends InstDescr { - private final String service = "com.sun.star.text.Footnote"; - private String ifcName = "com.sun.star.text.XTextContent"; + private static final String service = "com.sun.star.text.Footnote"; + private static final String ifcName = "com.sun.star.text.XTextContent"; private String name = null; diff --git a/qadevOOo/runner/util/FrameDsc.java b/qadevOOo/runner/util/FrameDsc.java index c65738eb9204..348cc8d5d3fb 100644 --- a/qadevOOo/runner/util/FrameDsc.java +++ b/qadevOOo/runner/util/FrameDsc.java @@ -34,8 +34,8 @@ public class FrameDsc extends InstDescr { private int height = 2000; private int width = 2000; private String name = null; - private final String ifcName = "com.sun.star.text.XTextFrame"; - private final String service = "com.sun.star.text.TextFrame"; + private static final String ifcName = "com.sun.star.text.XTextFrame"; + private static final String service = "com.sun.star.text.TextFrame"; public FrameDsc() { initFrame(); diff --git a/qadevOOo/runner/util/ParagraphDsc.java b/qadevOOo/runner/util/ParagraphDsc.java index 16508836f107..318ada2e0e5b 100644 --- a/qadevOOo/runner/util/ParagraphDsc.java +++ b/qadevOOo/runner/util/ParagraphDsc.java @@ -28,8 +28,8 @@ import com.sun.star.text.XTextContent; */ public class ParagraphDsc extends InstDescr { - private final String service = "com.sun.star.text.Paragraph"; - private String ifcName = "com.sun.star.text.XTextContent"; + private static final String service = "com.sun.star.text.Paragraph"; + private static final String ifcName = "com.sun.star.text.XTextContent"; private String name = null; diff --git a/qadevOOo/runner/util/ReferenceMarkDsc.java b/qadevOOo/runner/util/ReferenceMarkDsc.java index 8185bd9ae774..82f8c3ffc7e4 100644 --- a/qadevOOo/runner/util/ReferenceMarkDsc.java +++ b/qadevOOo/runner/util/ReferenceMarkDsc.java @@ -27,8 +27,8 @@ import com.sun.star.text.XTextContent; */ public class ReferenceMarkDsc extends InstDescr { - private final String service = "com.sun.star.text.ReferenceMark"; - private String ifcName = "com.sun.star.text.XTextContent"; + private static final String service = "com.sun.star.text.ReferenceMark"; + private static final String ifcName = "com.sun.star.text.XTextContent"; private String name = null; diff --git a/qadevOOo/runner/util/ShapeDsc.java b/qadevOOo/runner/util/ShapeDsc.java index c8f970e50701..9610c3dabdb5 100644 --- a/qadevOOo/runner/util/ShapeDsc.java +++ b/qadevOOo/runner/util/ShapeDsc.java @@ -33,7 +33,7 @@ public class ShapeDsc extends InstDescr { private int height = 0; private int width = 0; private String name = null; - private final String ifcName = "com.sun.star.drawing.XShape"; + private static final String ifcName = "com.sun.star.drawing.XShape"; private String service = "com.sun.star.drawing.RectangleShape"; public ShapeDsc( int nheight, int nwidth, int nx, int ny, String kind ) { diff --git a/qadevOOo/runner/util/StyleFamilyDsc.java b/qadevOOo/runner/util/StyleFamilyDsc.java index 2a165b0a3d69..c3cf2baae49b 100644 --- a/qadevOOo/runner/util/StyleFamilyDsc.java +++ b/qadevOOo/runner/util/StyleFamilyDsc.java @@ -27,9 +27,9 @@ import com.sun.star.uno.UnoRuntime; */ public class StyleFamilyDsc extends InstDescr { - private String name = null; - final String ifcName = "com.sun.star.style.XStyle"; - String service = "com.sun.star.style.CharacterStyle"; + private String name = null; + static final String ifcName = "com.sun.star.style.XStyle"; + String service = "com.sun.star.style.CharacterStyle"; public StyleFamilyDsc( String kind ) { service = "com.sun.star.style." + kind; diff --git a/qadevOOo/runner/util/TableDsc.java b/qadevOOo/runner/util/TableDsc.java index 0821fd20ee20..905e117879c9 100644 --- a/qadevOOo/runner/util/TableDsc.java +++ b/qadevOOo/runner/util/TableDsc.java @@ -30,8 +30,8 @@ public class TableDsc extends InstDescr { private int rows = 0; private int columns = 0; private String name = null; - private final String ifcName = "com.sun.star.text.XTextTable"; - private final String service = "com.sun.star.text.TextTable"; + private static final String ifcName = "com.sun.star.text.XTextTable"; + private static final String service = "com.sun.star.text.TextTable"; public TableDsc() { initTable(); diff --git a/qadevOOo/runner/util/TextSectionDsc.java b/qadevOOo/runner/util/TextSectionDsc.java index 2a435e5395ab..814d59c147f1 100644 --- a/qadevOOo/runner/util/TextSectionDsc.java +++ b/qadevOOo/runner/util/TextSectionDsc.java @@ -27,8 +27,8 @@ import com.sun.star.text.XTextContent; */ public class TextSectionDsc extends InstDescr { - private final String service = "com.sun.star.text.TextSection"; - private String ifcName = "com.sun.star.text.XTextContent"; + private static final String service = "com.sun.star.text.TextSection"; + private static final String ifcName = "com.sun.star.text.XTextContent"; private String name = null; |