diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-18 10:01:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-18 12:44:28 +0200 |
commit | 0063cf285696951e336b9cec1da8881997b286ce (patch) | |
tree | be70dfd8127c35f9e4a6d18d4db459a587813bf4 /unotest | |
parent | 250391009aec9930abcc57930ddd4b6f56f4df9c (diff) |
java: make fields final where possible
found by PMD
Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/java/org/openoffice/test/tools/OfficeDocument.java | 2 | ||||
-rw-r--r-- | unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java b/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java index 5a1acf6daa54..4d5630824e90 100644 --- a/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java +++ b/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java @@ -313,7 +313,7 @@ public class OfficeDocument return (XInterface) xORB.createInstanceWithArguments( serviceSpecifier, arguments ); } - private XMultiServiceFactory m_orb; + private final XMultiServiceFactory m_orb; private XComponent m_documentComponent; } diff --git a/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java b/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java index 41f51b377a52..e309504a42c0 100644 --- a/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java +++ b/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java @@ -35,9 +35,9 @@ import com.sun.star.util.XURLTransformer; */ public class OfficeDocumentView { - private XMultiServiceFactory m_orb; - private XController m_controller; - private OfficeDocument m_document; + private final XMultiServiceFactory m_orb; + private final XController m_controller; + private final OfficeDocument m_document; /* ------------------------------------------------------------------ */ final public XController getController() |