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 /qadevOOo/tests/java/ifc/util | |
parent | 250391009aec9930abcc57930ddd4b6f56f4df9c (diff) |
java: make fields final where possible
found by PMD
Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
Diffstat (limited to 'qadevOOo/tests/java/ifc/util')
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XFlushable.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XReplaceable.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/ifc/util/_XFlushable.java b/qadevOOo/tests/java/ifc/util/_XFlushable.java index 8cb849b008bb..d96e075e95e5 100644 --- a/qadevOOo/tests/java/ifc/util/_XFlushable.java +++ b/qadevOOo/tests/java/ifc/util/_XFlushable.java @@ -52,7 +52,7 @@ public class _XFlushable extends MultiMethodTest { public boolean wasFlushed() { return called; } } - private MyFlushListener listener1 = new MyFlushListener(), + private final MyFlushListener listener1 = new MyFlushListener(), listener2 = new MyFlushListener() ; /** diff --git a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java index 4e3a3043113d..a8fd74314e6b 100644 --- a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java +++ b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java @@ -51,7 +51,7 @@ public class _XModifyBroadcaster extends MultiMethodTest { } } - private TestModifyListener listener = new TestModifyListener(); + private final TestModifyListener listener = new TestModifyListener(); /** * Just calls the method. <p> diff --git a/qadevOOo/tests/java/ifc/util/_XReplaceable.java b/qadevOOo/tests/java/ifc/util/_XReplaceable.java index ca3cca6ee7c0..c1634a7763ca 100644 --- a/qadevOOo/tests/java/ifc/util/_XReplaceable.java +++ b/qadevOOo/tests/java/ifc/util/_XReplaceable.java @@ -45,7 +45,7 @@ public class _XReplaceable extends MultiMethodTest { public XReplaceable oObj = null; public XReplaceDescriptor Rdesc = null; private String mSearchString = "xTextDoc"; - private String mReplaceString = "** xTextDoc"; + private final String mReplaceString = "** xTextDoc"; private boolean mDispose = false; /** |