From 0063cf285696951e336b9cec1da8881997b286ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Nov 2014 10:01:21 +0200 Subject: java: make fields final where possible found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec --- vcl/qa/complex/memCheck/CheckMemoryUsage.java | 6 +++--- vcl/qa/complex/persistent_window_states/DocumentHandle.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/qa/complex') 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 -- cgit