mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Stylistic tweaks
This commit is contained in:
parent
17a42c5611
commit
7534459fec
@ -14,9 +14,9 @@ public class File {
|
||||
private static final String FileSeparator
|
||||
= System.getProperty("file.separator");
|
||||
|
||||
// static {
|
||||
// System.loadLibrary("natives");
|
||||
// }
|
||||
// static {
|
||||
// System.loadLibrary("natives");
|
||||
// }
|
||||
|
||||
private final String path;
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
||||
package java.io;
|
||||
|
||||
public class FileInputStream extends InputStream {
|
||||
// static {
|
||||
// System.loadLibrary("natives");
|
||||
// }
|
||||
// static {
|
||||
// System.loadLibrary("natives");
|
||||
// }
|
||||
|
||||
private int fd;
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
||||
package java.io;
|
||||
|
||||
public class FileOutputStream extends OutputStream {
|
||||
// static {
|
||||
// System.loadLibrary("natives");
|
||||
// }
|
||||
// static {
|
||||
// System.loadLibrary("natives");
|
||||
// }
|
||||
|
||||
private int fd;
|
||||
|
||||
|
@ -41,8 +41,7 @@ public abstract class InputStream {
|
||||
int c;
|
||||
while ((c = read(buffer, 0, (int) (size < remaining ? size : remaining)))
|
||||
>= 0
|
||||
&& remaining > 0)
|
||||
{
|
||||
&& remaining > 0) {
|
||||
remaining -= c;
|
||||
}
|
||||
return count - remaining;
|
||||
|
@ -38,11 +38,11 @@ public class PushbackReader extends Reader {
|
||||
if (length > 0) {
|
||||
int c = in.read(b, offset, length);
|
||||
if (c == -1) {
|
||||
if (count == 0) {
|
||||
count = -1;
|
||||
}
|
||||
if (count == 0) {
|
||||
count = -1;
|
||||
}
|
||||
} else {
|
||||
count += c;
|
||||
count += c;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user