1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #2647 from wilkice/main

[docs fix] code indentation
This commit is contained in:
Guide 2025-03-18 19:23:50 +08:00 committed by GitHub
commit 3783714365
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,8 +118,8 @@ BufferedReader bufferedReader = new BufferedReader(isr);
```java
public class InputStreamReader extends Reader {
//用于解码的对象
private final StreamDecoder sd;
//用于解码的对象
private final StreamDecoder sd;
public InputStreamReader(InputStream in) {
super(in);
try {
@ -130,7 +130,7 @@ public class InputStreamReader extends Reader {
}
}
// 使用 StreamDecoder 对象做具体的读取工作
public int read() throws IOException {
public int read() throws IOException {
return sd.read();
}
}