git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More PMD warnings
[fanfix.git]
/
src
/
jexer
/
io
/
TimeoutInputStream.java
diff --git
a/src/jexer/io/TimeoutInputStream.java
b/src/jexer/io/TimeoutInputStream.java
index f1b140bcf31dd23f9160551940b24e2587d755dd..db9eb4a6006897ea1a576c123cea0df0acf23a68 100644
(file)
--- a/
src/jexer/io/TimeoutInputStream.java
+++ b/
src/jexer/io/TimeoutInputStream.java
@@
-73,7
+73,7
@@
public class TimeoutInputStream extends InputStream {
}
/**
}
/**
- * Public constructor
, using the default 10 bits per byte
.
+ * Public constructor.
*
* @param stream the wrapped InputStream
* @param timeoutMillis the timeout value in millis. If it takes longer
*
* @param stream the wrapped InputStream
* @param timeoutMillis the timeout value in millis. If it takes longer
@@
-130,7
+130,7
@@
public class TimeoutInputStream extends InputStream {
try {
// How long do we sleep for, eh? For now we will go with 2
// millis.
try {
// How long do we sleep for, eh? For now we will go with 2
// millis.
- Thread.
currentThread().
sleep(2);
+ Thread.sleep(2);
} catch (InterruptedException e) {
// SQUASH
}
} catch (InterruptedException e) {
// SQUASH
}
@@
-189,7
+189,7
@@
public class TimeoutInputStream extends InputStream {
try {
// How long do we sleep for, eh? For now we will go with
// 2 millis.
try {
// How long do we sleep for, eh? For now we will go with
// 2 millis.
- Thread.
currentThread().
sleep(2);
+ Thread.sleep(2);
} catch (InterruptedException e) {
// SQUASH
}
} catch (InterruptedException e) {
// SQUASH
}
@@
-264,7
+264,7
@@
public class TimeoutInputStream extends InputStream {
try {
// How long do we sleep for, eh? For now we will go with
// 2 millis.
try {
// How long do we sleep for, eh? For now we will go with
// 2 millis.
- Thread.
currentThread().
sleep(2);
+ Thread.sleep(2);
} catch (InterruptedException e) {
// SQUASH
}
} catch (InterruptedException e) {
// SQUASH
}