Skip to content

Commit dd0f735

Browse files
committed
spotless formatting
1 parent bff4330 commit dd0f735

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

key.format/src/main/java/de/uka/ilkd/key/nparser/format/KeyFileFormatter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private static void processHiddenTokens(@Nullable List<Token> tokens, Output out
262262
}
263263

264264
static void processHiddenTokensAfterCurrent(Token currentToken, CommonTokenStream ts,
265-
Output output) {
265+
Output output) {
266266
// add hidden tokens after the current token (whitespace, comments etc.)
267267
List<Token> list = ts.getHiddenTokensToRight(currentToken.getTokenIndex());
268268
processHiddenTokens(list, output);
@@ -302,7 +302,7 @@ private static void processIndentationInMLComment(String text, Output output) {
302302
// Watch out for empty line when removing the common indent
303303
// weigl: "line.length() < minIndent" was required for Windows.
304304
line =
305-
line.isEmpty() || line.length() < minIndent ? line : line.substring(minIndent);
305+
line.isEmpty() || line.length() < minIndent ? line : line.substring(minIndent);
306306
} else {
307307
line = line.stripLeading();
308308
}
@@ -358,7 +358,7 @@ public Void visitTerminal(TerminalNode node) {
358358
}
359359

360360
boolean isLBrace =
361-
token == KeYLexer.LBRACE || token == KeYLexer.LPAREN || token == KeYLexer.LBRACKET;
361+
token == KeYLexer.LBRACE || token == KeYLexer.LPAREN || token == KeYLexer.LBRACKET;
362362
if (isLBrace) {
363363
output.spaceBeforeNext();
364364
} else if (token == KeYLexer.RBRACE || token == KeYLexer.RPAREN
@@ -372,9 +372,9 @@ public Void visitTerminal(TerminalNode node) {
372372
}
373373

374374
var noSpaceAround =
375-
token == KeYLexer.COLON || token == KeYLexer.DOT || token == KeYLexer.DOUBLECOLON;
375+
token == KeYLexer.COLON || token == KeYLexer.DOT || token == KeYLexer.DOUBLECOLON;
376376
var noSpaceBefore =
377-
token == KeYLexer.SEMI || token == KeYLexer.COMMA || token == KeYLexer.LPAREN;
377+
token == KeYLexer.SEMI || token == KeYLexer.COMMA || token == KeYLexer.LPAREN;
378378
if (noSpaceBefore || noSpaceAround) {
379379
output.noSpaceBeforeNext();
380380
}
@@ -408,7 +408,7 @@ private static int countNLs(String text) {
408408
* @param stream char stream
409409
* @return the formatted text
410410
* @throws de.uka.ilkd.key.util.parsing.SyntaxErrorReporter.ParserException if the given text is
411-
* not parser
411+
* not parser
412412
*/
413413
public static String format(CharStream stream) {
414414
// weigl: Not necessary is handled within the lexer

key.format/src/main/java/de/uka/ilkd/key/nparser/format/KeyFormatFacade.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22
* KeY is licensed under the GNU General Public License Version 2
33
* SPDX-License-Identifier: GPL-2.0-only */
44
package de.uka.ilkd.key.nparser.format;/*
5-
* This file is part of KeY - https://key-project.org
6-
* KeY is licensed under the GNU General Public License
7-
* Version 2
8-
* SPDX-License-Identifier: GPL-2.0-only
9-
*/
5+
* This file is part of KeY - https://key-project.org
6+
* KeY is licensed under the GNU General Public License
7+
* Version 2
8+
* SPDX-License-Identifier: GPL-2.0-only
9+
*/
10+
11+
import java.io.IOException;
12+
import java.nio.file.Files;
13+
import java.nio.file.Path;
14+
import java.util.ArrayList;
15+
import java.util.List;
16+
import java.util.concurrent.Callable;
1017

1118
import de.uka.ilkd.key.util.parsing.SyntaxErrorReporter;
19+
1220
import org.antlr.v4.runtime.CharStreams;
1321
import org.slf4j.Logger;
1422
import org.slf4j.LoggerFactory;
1523
import picocli.CommandLine;
1624
import picocli.CommandLine.Command;
1725
import picocli.CommandLine.Parameters;
1826

19-
import java.io.IOException;
20-
import java.nio.file.Files;
21-
import java.nio.file.Path;
22-
import java.util.ArrayList;
23-
import java.util.List;
24-
import java.util.concurrent.Callable;
25-
2627
import static de.uka.ilkd.key.nparser.format.KeyFileFormatter.format;
2728

2829
/**
@@ -59,7 +60,7 @@ public static boolean checkFile(Path file) throws IOException {
5960
* <p>
6061
* {@code} output is not written when an error occurred.
6162
*
62-
* @param input source file
63+
* @param input source file
6364
* @param output target file
6465
* @throws IOException file not found or not readable.
6566
*/

0 commit comments

Comments
 (0)