Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-03-24 14:26:48 +0000
committerLars Vogel2021-03-24 14:26:48 +0000
commit55e0165ae07ccb113371a5366d56444e82b64d92 (patch)
treeef450ed9c2cc729d2fac30a763976ece85decb61
parent08b688f0bf87ffbfcef3971c22dfb210c2120d97 (diff)
downloadeclipse.platform.debug-I20210324-1800.tar.gz
eclipse.platform.debug-I20210324-1800.tar.xz
eclipse.platform.debug-I20210324-1800.zip
Use JDT clean up "Convert field into local variable if field is usedI20210327-1800I20210326-1800I20210325-1800I20210324-1800
only local for JFace Snippets No need to save the value as field if it is only used locally. Change-Id: I34d4cdfca4536061dc5f0591431cb7b555bbb212 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/OutputStreamMonitor.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/OutputStreamMonitor.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/OutputStreamMonitor.java
index 916858aab..bdc2cd539 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/OutputStreamMonitor.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/OutputStreamMonitor.java
@@ -83,8 +83,6 @@ public class OutputStreamMonitor implements IBinaryStreamMonitor {
*/
private boolean fKilled = false;
- private long lastSleep;
-
private Charset fCharset;
private StreamDecoder fDecoder;
@@ -235,7 +233,7 @@ public class OutputStreamMonitor implements IBinaryStreamMonitor {
* publicly exposing a {@link Runnable#run()} method.
*/
private void internalRead() {
- lastSleep = System.currentTimeMillis();
+ long lastSleep = System.currentTimeMillis();
long currentTime = lastSleep;
byte[] buffer = new byte[BUFFER_SIZE];
int read = 0;

Back to the top