diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 12:44:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:23 +0200 |
commit | 68cd011c907d00493bf2bfde531c1e244819596b (patch) | |
tree | 0225318c908b00faaa701a19aaf7aa567c3582a0 /qadevOOo/runner/helper/ProcessHandler.java | |
parent | 70f56bc22fe952c75ec714e05e1bb5296491a36a (diff) |
java: reduce scope, make some methods private
found by UCDetector
Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'qadevOOo/runner/helper/ProcessHandler.java')
-rw-r--r-- | qadevOOo/runner/helper/ProcessHandler.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qadevOOo/runner/helper/ProcessHandler.java b/qadevOOo/runner/helper/ProcessHandler.java index 042f0d6132ed..43372d224b67 100644 --- a/qadevOOo/runner/helper/ProcessHandler.java +++ b/qadevOOo/runner/helper/ProcessHandler.java @@ -480,7 +480,7 @@ public class ProcessHandler /** * Returns the time in seconds since 1st January 1970 */ - public static long getSystemTime() + private static long getSystemTime() { final long nTime = System.currentTimeMillis(); return nTime; @@ -512,7 +512,7 @@ public class ProcessHandler } } - protected void execute() + private void execute() { if (isStarted()) { @@ -607,7 +607,7 @@ public class ProcessHandler * @return <code>true</code> if process correctly exited * (exit code doesn't affect to this result). */ - public boolean waitFor(long timeout) + private boolean waitFor(long timeout) { return waitFor(timeout, true); } @@ -690,7 +690,7 @@ public class ProcessHandler return isFinished(); } - protected void flushInput() + private void flushInput() { if (stdIn == null) { @@ -797,7 +797,7 @@ public class ProcessHandler /** Causes the thread to sleep some time. */ - public static void shortWait(long milliseconds) + private static void shortWait(long milliseconds) { try { @@ -849,7 +849,7 @@ public class ProcessHandler * * Reason: interrupt() seems not to work as expected. */ - public synchronized void holdOn() + private synchronized void holdOn() { m_bInterrupt = true; interrupt(); |