mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 06:55:02 +08:00
style: enable NeedBraces
in checkstyle (#5227)
* enable style NeedBraces * style: enable NeedBraces in checkstyle --------- Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
This commit is contained in:

committed by
GitHub

parent
51fcc66345
commit
87b17e0571
@ -54,7 +54,9 @@ class BufferedReaderTest {
|
||||
assertEquals(reader.read(), 'l'); // third letter
|
||||
assertEquals(reader.peek(1), 'o'); // fourth letter
|
||||
|
||||
for (int i = 0; i < 6; i++) reader.read();
|
||||
for (int i = 0; i < 6; i++) {
|
||||
reader.read();
|
||||
}
|
||||
try {
|
||||
System.out.println((char) reader.peek(4));
|
||||
} catch (Exception ignored) {
|
||||
|
Reference in New Issue
Block a user