]> wirehaze git hosting - axolotl.git/commitdiff

wirehaze git hosting

Use method reference instead of anonymous inner class in Main.main() main
authorphfr24 <phfr24@inf.ufpr.br>
Wed, 11 Feb 2026 01:36:17 +0000 (22:36 -0300)
committerphfr24 <phfr24@inf.ufpr.br>
Wed, 11 Feb 2026 01:36:17 +0000 (22:36 -0300)
client/src/main/java/ovh/wirehaze/axolotl/client/Main.java

index be03de13a988377ffbe7c30cca2381bbc185535c..9282f8a540318a6b18b7cae66f89fc304d732ea8 100644 (file)
@@ -5,12 +5,7 @@ import javax.swing.*;
 public class Main {
 
        public static void main(String[] args) {
-               SwingUtilities.invokeLater(new Runnable() {
-                       @Override
-                       public void run() {
-                               createMainWindow();
-                       }
-               });
+               SwingUtilities.invokeLater(Main::createMainWindow);
        }
 
        private static void createMainWindow() {