Stylistic tweaks

This commit is contained in:
Eric Scharff 2008-07-13 21:54:07 -06:00
parent 17a42c5611
commit 7534459fec
5 changed files with 14 additions and 15 deletions

View File

@ -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;

View File

@ -11,9 +11,9 @@
package java.io;
public class FileInputStream extends InputStream {
// static {
// System.loadLibrary("natives");
// }
// static {
// System.loadLibrary("natives");
// }
private int fd;

View File

@ -11,9 +11,9 @@
package java.io;
public class FileOutputStream extends OutputStream {
// static {
// System.loadLibrary("natives");
// }
// static {
// System.loadLibrary("natives");
// }
private int fd;

View File

@ -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;

View File

@ -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;
}
}