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

View File

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

View File

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

View File

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

View File

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