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 /jurt | |
parent | 250391009aec9930abcc57930ddd4b6f56f4df9c (diff) |
java: make fields final where possible
found by PMD
Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
Diffstat (limited to 'jurt')
-rw-r--r-- | jurt/com/sun/star/comp/urlresolver/UrlResolver.java | 2 | ||||
-rw-r--r-- | jurt/com/sun/star/lib/uno/environments/remote/ThreadId.java | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/jurt/com/sun/star/comp/urlresolver/UrlResolver.java b/jurt/com/sun/star/comp/urlresolver/UrlResolver.java index 5a7e91c77fe5..76058e95a6b4 100644 --- a/jurt/com/sun/star/comp/urlresolver/UrlResolver.java +++ b/jurt/com/sun/star/comp/urlresolver/UrlResolver.java @@ -50,7 +50,7 @@ public class UrlResolver { static public class _UrlResolver implements XUnoUrlResolver { static private final String __serviceName = "com.sun.star.bridge.UnoUrlResolver"; - private XMultiServiceFactory _xMultiServiceFactory; + private final XMultiServiceFactory _xMultiServiceFactory; public _UrlResolver(XMultiServiceFactory xMultiServiceFactory) { _xMultiServiceFactory = xMultiServiceFactory; diff --git a/jurt/com/sun/star/lib/uno/environments/remote/ThreadId.java b/jurt/com/sun/star/lib/uno/environments/remote/ThreadId.java index b652aaf130c0..24d1572f866c 100644 --- a/jurt/com/sun/star/lib/uno/environments/remote/ThreadId.java +++ b/jurt/com/sun/star/lib/uno/environments/remote/ThreadId.java @@ -101,10 +101,9 @@ public final class ThreadId { return id; } - private static final String PREFIX - = "java:" + UnoRuntime.getUniqueKey() + ":"; + private static final String PREFIX = "java:" + UnoRuntime.getUniqueKey() + ":"; private static BigInteger count = BigInteger.ZERO; - private byte[] id; + private final byte[] id; private int hash = 0; } |