Skip to content

Commit

Permalink
Fix static method warnings in Groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a committed Mar 17, 2024
1 parent a1889a1 commit da382e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import java.io.IOException

class GroovyFXMLFileTextCounterApplication extends Application {

static void main(String[] args) {
launch(GroovyFXMLFileTextCounterApplication, args)// launch the application by running the program
}
@Override
void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(
Expand All @@ -21,8 +24,4 @@ class GroovyFXMLFileTextCounterApplication extends Application {
stage.show()// show the stage
}

static void main(String[] args) {
launch(GroovyFXMLFileTextCounterApplication, args)// launch the application by running the program
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import java.io.IOException

class GroovyFXMLTextCounterApplication extends Application {

static void main(String[] args) {
launch()// launch the application by running the program
}
@Override
void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(GroovyFXMLTextCounterApplication.getResource('fxml-text-counter-groovy.fxml'))// load
Expand All @@ -22,8 +25,4 @@ class GroovyFXMLTextCounterApplication extends Application {
stage.show()// show the stage
}

static void main(String[] args) {
launch()// launch the application by running the program
}

}

0 comments on commit da382e7

Please sign in to comment.