Style: Bracket after 'if' and record in one-line
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
package ch.unibas.dmi.dbis.cs108.casono.server.tokenizer;
|
||||
|
||||
public record RawToken(
|
||||
RawTokenType type,
|
||||
String value,
|
||||
int line,
|
||||
int column
|
||||
) {}
|
||||
/** Represents a raw (unclassified) token in the tokenizer. */
|
||||
public record RawToken(RawTokenType type, String value, int line, int column) {}
|
||||
|
||||
@@ -24,7 +24,9 @@ class State {
|
||||
}
|
||||
|
||||
char peek() {
|
||||
if (pos + 1 >= input.length()) return '\0';
|
||||
if (pos + 1 >= input.length()) {
|
||||
return '\0';
|
||||
}
|
||||
return input.charAt(pos + 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user