From 022c1407edc078bdb45e8f443a4978e8d54f6480 Mon Sep 17 00:00:00 2001 From: "vyacheslav.raskulin" Date: Wed, 9 Sep 2020 14:53:03 +0300 Subject: [PATCH] C-style arrays declaration should be replaced to java-style --- .../main/java/mage/client/components/MageDesktopManager.java | 2 +- .../src/main/java/mage/client/dialog/FeedbackDialog.java | 2 +- Mage.Client/src/main/java/mage/client/util/SystemUtil.java | 2 +- Mage.Client/src/main/java/mage/client/util/audio/MageClip.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/components/MageDesktopManager.java b/Mage.Client/src/main/java/mage/client/components/MageDesktopManager.java index 146af3294b..da192c559a 100644 --- a/Mage.Client/src/main/java/mage/client/components/MageDesktopManager.java +++ b/Mage.Client/src/main/java/mage/client/components/MageDesktopManager.java @@ -36,7 +36,7 @@ public class MageDesktopManager extends DefaultDesktopManager { } } - public static void main(String args[]) { + public static void main(String[] args) { SwingUtilities.invokeLater(() -> { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); diff --git a/Mage.Client/src/main/java/mage/client/dialog/FeedbackDialog.java b/Mage.Client/src/main/java/mage/client/dialog/FeedbackDialog.java index d85d9ee11d..d014e6d6fd 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/FeedbackDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/FeedbackDialog.java @@ -259,7 +259,7 @@ public class FeedbackDialog extends javax.swing.JDialog { /** * @param args the command line arguments */ - public static void main(String args[]) { + public static void main(String[] args) { java.awt.EventQueue.invokeLater(() -> { if (!dialog.isVisible()) { dialog.setLocation(300, 200); diff --git a/Mage.Client/src/main/java/mage/client/util/SystemUtil.java b/Mage.Client/src/main/java/mage/client/util/SystemUtil.java index 20b9b6a9bf..b9f6568f86 100644 --- a/Mage.Client/src/main/java/mage/client/util/SystemUtil.java +++ b/Mage.Client/src/main/java/mage/client/util/SystemUtil.java @@ -42,7 +42,7 @@ public final class SystemUtil { Method method = clazz.getMethod(methodName); Object appInstance = method.invoke(clazz); - Class params[] = new Class[]{Window.class}; + Class[] params = new Class[]{Window.class}; method = clazz.getMethod(methodName2, params); method.invoke(appInstance, window); } catch (Throwable t) { diff --git a/Mage.Client/src/main/java/mage/client/util/audio/MageClip.java b/Mage.Client/src/main/java/mage/client/util/audio/MageClip.java index 95a626cb56..3658cc46f1 100644 --- a/Mage.Client/src/main/java/mage/client/util/audio/MageClip.java +++ b/Mage.Client/src/main/java/mage/client/util/audio/MageClip.java @@ -23,7 +23,7 @@ public class MageClip { private final AudioGroup audioGroup; private final String filename; - private final byte buf[]; + private final byte[] buf; public MageClip(String filename, AudioGroup audioGroup) { this.filename = filename;