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 /vcl | |
parent | 250391009aec9930abcc57930ddd4b6f56f4df9c (diff) |
java: make fields final where possible
found by PMD
Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/complex/memCheck/CheckMemoryUsage.java | 6 | ||||
-rw-r--r-- | vcl/qa/complex/persistent_window_states/DocumentHandle.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/qa/complex/memCheck/CheckMemoryUsage.java b/vcl/qa/complex/memCheck/CheckMemoryUsage.java index 77d4acfdf78b..847172d83e93 100644 --- a/vcl/qa/complex/memCheck/CheckMemoryUsage.java +++ b/vcl/qa/complex/memCheck/CheckMemoryUsage.java @@ -70,7 +70,7 @@ import com.sun.star.util.XCloseable; class TempDir { - private String m_sTempDir; + private final String m_sTempDir; public TempDir(String _sTempDir) { @@ -99,7 +99,7 @@ public class CheckMemoryUsage /* extends ComplexTestCase */ TempDir m_aTempDir; private String[][] sDocTypeExportFilter; private String[][] sDocuments; - private int iAllowMemoryIncrease = 10; + private final int iAllowMemoryIncrease = 10; private int iExportDocCount = 25; /** * The test parameters @@ -512,7 +512,7 @@ public class CheckMemoryUsage /* extends ComplexTestCase */ private class FileFilter implements FilenameFilter { - private String suffix = null; + private final String suffix; /** * C'tor. diff --git a/vcl/qa/complex/persistent_window_states/DocumentHandle.java b/vcl/qa/complex/persistent_window_states/DocumentHandle.java index dc45ab10cc7d..65ba8b1532c7 100644 --- a/vcl/qa/complex/persistent_window_states/DocumentHandle.java +++ b/vcl/qa/complex/persistent_window_states/DocumentHandle.java @@ -35,12 +35,12 @@ import helper.WindowListener; */ public class DocumentHandle { // the component loader to load a document - private XComponentLoader xCompLoader = null; + private final XComponentLoader xCompLoader; // the current window private XWindow xWin = null; // a own window listener - private WindowListener wl = null; + private final WindowListener wl; /** * Constructor |