From 7534459fecb8e86a2cadac2078ae80b8b803c9eb Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Sun, 13 Jul 2008 21:54:07 -0600 Subject: [PATCH] Stylistic tweaks --- classpath/java/io/File.java | 6 +++--- classpath/java/io/FileInputStream.java | 6 +++--- classpath/java/io/FileOutputStream.java | 6 +++--- classpath/java/io/InputStream.java | 3 +-- classpath/java/io/PushbackReader.java | 8 ++++---- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/classpath/java/io/File.java b/classpath/java/io/File.java index 3cc8c6ee29..0f91ebb746 100644 --- a/classpath/java/io/File.java +++ b/classpath/java/io/File.java @@ -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; diff --git a/classpath/java/io/FileInputStream.java b/classpath/java/io/FileInputStream.java index 5a141c82a6..1c7a6c9532 100644 --- a/classpath/java/io/FileInputStream.java +++ b/classpath/java/io/FileInputStream.java @@ -11,9 +11,9 @@ package java.io; public class FileInputStream extends InputStream { -// static { -// System.loadLibrary("natives"); -// } + // static { + // System.loadLibrary("natives"); + // } private int fd; diff --git a/classpath/java/io/FileOutputStream.java b/classpath/java/io/FileOutputStream.java index 4083512656..4d50412414 100644 --- a/classpath/java/io/FileOutputStream.java +++ b/classpath/java/io/FileOutputStream.java @@ -11,9 +11,9 @@ package java.io; public class FileOutputStream extends OutputStream { -// static { -// System.loadLibrary("natives"); -// } + // static { + // System.loadLibrary("natives"); + // } private int fd; diff --git a/classpath/java/io/InputStream.java b/classpath/java/io/InputStream.java index ade4c81015..a225432044 100644 --- a/classpath/java/io/InputStream.java +++ b/classpath/java/io/InputStream.java @@ -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; diff --git a/classpath/java/io/PushbackReader.java b/classpath/java/io/PushbackReader.java index b75e963773..c1d8dd5091 100644 --- a/classpath/java/io/PushbackReader.java +++ b/classpath/java/io/PushbackReader.java @@ -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; } }