Skip to content

Commit

Permalink
fix a build error, see below
Browse files Browse the repository at this point in the history
weiwu@weiwu-21BXCTO1WW:~/IdeaProjects/Briss-2.0$ ./gradlew build

> Task :compileJava
Note: /home/weiwu/IdeaProjects/Briss-2.0/src/main/java/at/laborg/briss/gui/MergedPanel.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/weiwu/IdeaProjects/Briss-2.0/src/main/java/at/laborg/briss/utils/FileDrop.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :spotlessJavaCheck FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessJavaCheck'.
> The following files had format violations:
      src/main/java/at/laborg/briss/BrissSwingGUI.java
          @@ -340,7 +340,7 @@
           \t\tinitFileChooser();
           \t\tfileChooser.setTitle("Open·PDF·File");
           \t\tfileChooser.setMode(FileDialog.LOAD);
          -········fileChooser.setFile("*.pdf");
          +\t\tfileChooser.setFile("*.pdf");
           \t\tfileChooser.setVisible(true);
           \t\tString·filename·=·fileChooser.getFile();
           \t\tString·directory·=·fileChooser.getDirectory();
  Run './gradlew :spotlessApply' to fix these violations.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 23s
13 actionable tasks: 13 executed
weiwu@weiwu-21BXCTO1WW:~/IdeaProjects/Briss-2.0$ ./gradlew :spotlessApply

BUILD SUCCESSFUL in 646ms
3 actionable tasks: 1 executed, 2 up-to-date
  • Loading branch information
SmartLayer committed Sep 27, 2023
1 parent 8970c9c commit 5acfbe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/at/laborg/briss/BrissSwingGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private void showOpenFileDialog() {
initFileChooser();
fileChooser.setTitle("Open PDF File");
fileChooser.setMode(FileDialog.LOAD);
fileChooser.setFile("*.pdf");
fileChooser.setFile("*.pdf");
fileChooser.setVisible(true);
String filename = fileChooser.getFile();
String directory = fileChooser.getDirectory();
Expand Down

0 comments on commit 5acfbe4

Please sign in to comment.