mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +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
|
private static final String FileSeparator
|
||||||
= System.getProperty("file.separator");
|
= System.getProperty("file.separator");
|
||||||
|
|
||||||
// static {
|
// static {
|
||||||
// System.loadLibrary("natives");
|
// System.loadLibrary("natives");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
private final String path;
|
private final String path;
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
public class FileInputStream extends InputStream {
|
public class FileInputStream extends InputStream {
|
||||||
// static {
|
// static {
|
||||||
// System.loadLibrary("natives");
|
// System.loadLibrary("natives");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
private int fd;
|
private int fd;
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
public class FileOutputStream extends OutputStream {
|
public class FileOutputStream extends OutputStream {
|
||||||
// static {
|
// static {
|
||||||
// System.loadLibrary("natives");
|
// System.loadLibrary("natives");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
private int fd;
|
private int fd;
|
||||||
|
|
||||||
|
@ -41,8 +41,7 @@ public abstract class InputStream {
|
|||||||
int c;
|
int c;
|
||||||
while ((c = read(buffer, 0, (int) (size < remaining ? size : remaining)))
|
while ((c = read(buffer, 0, (int) (size < remaining ? size : remaining)))
|
||||||
>= 0
|
>= 0
|
||||||
&& remaining > 0)
|
&& remaining > 0) {
|
||||||
{
|
|
||||||
remaining -= c;
|
remaining -= c;
|
||||||
}
|
}
|
||||||
return count - remaining;
|
return count - remaining;
|
||||||
|
@ -38,11 +38,11 @@ public class PushbackReader extends Reader {
|
|||||||
if (length > 0) {
|
if (length > 0) {
|
||||||
int c = in.read(b, offset, length);
|
int c = in.read(b, offset, length);
|
||||||
if (c == -1) {
|
if (c == -1) {
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
count = -1;
|
count = -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
count += c;
|
count += c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user