diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:36:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:22 +0200 |
commit | da677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch) | |
tree | 9aa09066c95935117bf405b119ed9f89f448a54d /bean | |
parent | 14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff) |
java: reduce scope, make fields private
found by UCDetector
Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'bean')
-rw-r--r-- | bean/com/sun/star/beans/JavaWindowPeerFake.java | 4 | ||||
-rw-r--r-- | bean/com/sun/star/beans/LocalOfficeWindow.java | 4 | ||||
-rw-r--r-- | bean/com/sun/star/comp/beans/JavaWindowPeerFake.java | 4 | ||||
-rw-r--r-- | bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 4 | ||||
-rw-r--r-- | bean/com/sun/star/comp/beans/OOoBean.java | 6 | ||||
-rw-r--r-- | bean/qa/complex/bean/ScreenComparer.java | 10 | ||||
-rw-r--r-- | bean/qa/complex/bean/WriterFrame.java | 2 |
7 files changed, 17 insertions, 17 deletions
diff --git a/bean/com/sun/star/beans/JavaWindowPeerFake.java b/bean/com/sun/star/beans/JavaWindowPeerFake.java index 5356a13883fb..a30fb146cd1d 100644 --- a/bean/com/sun/star/beans/JavaWindowPeerFake.java +++ b/bean/com/sun/star/beans/JavaWindowPeerFake.java @@ -27,8 +27,8 @@ import com.sun.star.awt.*; implements XSystemDependentWindowPeer, XWindowPeer { - protected long hWindow; - protected int localSystemType; + private long hWindow; + private int localSystemType; /** Create the faked window peer. * @param _hWindow the system handle to the window. diff --git a/bean/com/sun/star/beans/LocalOfficeWindow.java b/bean/com/sun/star/beans/LocalOfficeWindow.java index afeb89e0fd38..290c53e8727a 100644 --- a/bean/com/sun/star/beans/LocalOfficeWindow.java +++ b/bean/com/sun/star/beans/LocalOfficeWindow.java @@ -260,8 +260,8 @@ public class LocalOfficeWindow */ class CallWatchThread extends Thread { - Thread aWatchedThread; - long nTimeout; + private Thread aWatchedThread; + private long nTimeout; private CallWatchThread( long nTimeout ) { diff --git a/bean/com/sun/star/comp/beans/JavaWindowPeerFake.java b/bean/com/sun/star/comp/beans/JavaWindowPeerFake.java index 7bcfa7ada7ff..24679934cf33 100644 --- a/bean/com/sun/star/comp/beans/JavaWindowPeerFake.java +++ b/bean/com/sun/star/comp/beans/JavaWindowPeerFake.java @@ -28,8 +28,8 @@ import com.sun.star.awt.*; class JavaWindowPeerFake implements XSystemDependentWindowPeer, XWindowPeer { - protected int localSystemType; - protected Any wrappedHandle; + private int localSystemType; + private Any wrappedHandle; /** Create the faked window peer. * @param _hWindow the system handle to the window. diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index f9e5d50cd3e1..9fb9452d8610 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java @@ -729,8 +729,8 @@ public class LocalOfficeConnection class StreamProcessor extends Thread { - java.io.InputStream m_in; - java.io.PrintStream m_print; + private java.io.InputStream m_in; + private java.io.PrintStream m_print; private StreamProcessor(final java.io.InputStream in, final java.io.PrintStream out) { diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java index 5e5e933fcebe..b81517355313 100644 --- a/bean/com/sun/star/comp/beans/OOoBean.java +++ b/bean/com/sun/star/comp/beans/OOoBean.java @@ -40,9 +40,9 @@ public class OOoBean java.io.Externalizable { // timeout values (milli secs) - int nOOoStartTimeOut = 60000; - int nOOoCallTimeOut = 3000; - int nOOoCheckCycle = 1000; + private int nOOoStartTimeOut = 60000; + private int nOOoCallTimeOut = 3000; + private int nOOoCheckCycle = 1000; // This member contains the connection to an OOo instance if established. private transient OfficeConnection iConnection; diff --git a/bean/qa/complex/bean/ScreenComparer.java b/bean/qa/complex/bean/ScreenComparer.java index a5e7d1db97e1..164e302f8002 100644 --- a/bean/qa/complex/bean/ScreenComparer.java +++ b/bean/qa/complex/bean/ScreenComparer.java @@ -28,12 +28,12 @@ import javax.imageio.ImageIO; class ScreenComparer { - Rectangle m_rect; - BufferedImage m_img1; - BufferedImage m_img2; - BufferedImage m_imgDiff; + private Rectangle m_rect; + private BufferedImage m_img1; + private BufferedImage m_img2; + private BufferedImage m_imgDiff; - int m_diffColor; + private int m_diffColor; public ScreenComparer(int x, int y, int width, int height) { this(new Rectangle(x, y, width, height)); diff --git a/bean/qa/complex/bean/WriterFrame.java b/bean/qa/complex/bean/WriterFrame.java index 82448ef74bf8..e4700445d8bf 100644 --- a/bean/qa/complex/bean/WriterFrame.java +++ b/bean/qa/complex/bean/WriterFrame.java @@ -29,7 +29,7 @@ import com.sun.star.uno.UnoRuntime; class WriterFrame extends java.awt.Frame { - com.sun.star.comp.beans.OOoBean m_bean; + private com.sun.star.comp.beans.OOoBean m_bean; private final static String m_sDocURL = "private:factory/swriter"; /** |