summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-10 15:36:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-11 06:09:03 +0000
commit7557f23b31dcfb4d86c122bb34d9675c0db9a694 (patch)
tree5feb7be2b0841d8ee60d935cf2e29e9a01a31a27 /jurt
parent808fd5fbd8868dfd95c8a38676815798fa2b79c4 (diff)
java: reduce visibility of fields and methods
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'jurt')
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java6
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java2
-rw-r--r--jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java8
3 files changed, 8 insertions, 8 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java b/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java
index f907a3c1cb08..638427fe82ce 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java
@@ -34,10 +34,10 @@ class TestWorkAt implements TestIWorkAt {
int _sync_counter;
int _async_counter;
- Thread _sync_thread;
- Thread _async_thread;
+ private Thread _sync_thread;
+ private Thread _async_thread;
- boolean _passedAync = true;
+ private boolean _passedAync = true;
boolean _notified = false;
public synchronized void syncCall() throws Throwable {
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
index aff5def10cb8..e3ac682fe697 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
@@ -232,7 +232,7 @@ public class ThreadPool_Test {
}
abstract class Stress extends Thread {
- public Stress(int count) {
+ private Stress(int count) {
this.count = count;
}
diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java
index 88f6aeefea00..e84bd2a5f497 100644
--- a/jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java
+++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java
@@ -28,14 +28,14 @@ import com.sun.star.uno.Type;
class TestBridge implements IBridge {
- static public final boolean DEBUG = false;
+ static private final boolean DEBUG = false;
- final HashMap<String,Object> _hashtable = new HashMap<String,Object>();
+ private final HashMap<String,Object> _hashtable = new HashMap<String,Object>();
- IEnvironment _source ;//= new com.sun.star.lib.uno.environments.java.java_environment(null);
+ private IEnvironment _source ;//= new com.sun.star.lib.uno.environments.java.java_environment(null);
- class MyEnv implements IEnvironment {
+ private class MyEnv implements IEnvironment {
public Object getContext() {
return null;
}