Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
libcore
Commits
63c73584
Commit
63c73584
authored
13 years ago
by
Elliott Hughes
Committed by
android code review
13 years ago
Browse files
Options
Download
Plain Diff
Merge "Buffer System.in."
parents
9c915757
f0e583ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
luni/src/main/java/java/lang/System.java
luni/src/main/java/java/lang/System.java
+2
-2
No files found.
luni/src/main/java/java/lang/System.java
View file @
63c73584
...
...
@@ -34,6 +34,7 @@ package java.lang;
import
dalvik.system.VMRuntime
;
import
dalvik.system.VMStack
;
import
java.io.BufferedInputStream
;
import
java.io.Console
;
import
java.io.FileDescriptor
;
import
java.io.FileInputStream
;
...
...
@@ -83,10 +84,9 @@ public final class System {
private
static
Properties
systemProperties
;
static
{
// TODO: all three streams are buffered in Harmony.
err
=
new
PrintStream
(
new
FileOutputStream
(
FileDescriptor
.
err
));
out
=
new
PrintStream
(
new
FileOutputStream
(
FileDescriptor
.
out
));
in
=
new
FileInputStream
(
FileDescriptor
.
in
);
in
=
new
BufferedInputStream
(
new
FileInputStream
(
FileDescriptor
.
in
)
)
;
lineSeparator
=
System
.
getProperty
(
"line.separator"
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment