Style: Bracket after 'if' and record in one-line

This commit is contained in:
Lars Simon Winzer
2026-03-15 13:28:06 +01:00
parent 60f59e03d4
commit ca11c135f1
2 changed files with 5 additions and 7 deletions
@@ -1,8 +1,4 @@
package ch.unibas.dmi.dbis.cs108.casono.server.tokenizer; package ch.unibas.dmi.dbis.cs108.casono.server.tokenizer;
public record RawToken( /** Represents a raw (unclassified) token in the tokenizer. */
RawTokenType type, public record RawToken(RawTokenType type, String value, int line, int column) {}
String value,
int line,
int column
) {}
@@ -24,7 +24,9 @@ class State {
} }
char peek() { char peek() {
if (pos + 1 >= input.length()) return '\0'; if (pos + 1 >= input.length()) {
return '\0';
}
return input.charAt(pos + 1); return input.charAt(pos + 1);
} }