C-style arrays declaration should be replaced to java-style

This commit is contained in:
vyacheslav.raskulin 2020-09-09 14:53:03 +03:00
parent b23ccb8191
commit 022c1407ed
4 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ public class MageDesktopManager extends DefaultDesktopManager {
} }
} }
public static void main(String args[]) { public static void main(String[] args) {
SwingUtilities.invokeLater(() -> { SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame(); JFrame frame = new JFrame();
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

View file

@ -259,7 +259,7 @@ public class FeedbackDialog extends javax.swing.JDialog {
/** /**
* @param args the command line arguments * @param args the command line arguments
*/ */
public static void main(String args[]) { public static void main(String[] args) {
java.awt.EventQueue.invokeLater(() -> { java.awt.EventQueue.invokeLater(() -> {
if (!dialog.isVisible()) { if (!dialog.isVisible()) {
dialog.setLocation(300, 200); dialog.setLocation(300, 200);

View file

@ -42,7 +42,7 @@ public final class SystemUtil {
Method method = clazz.getMethod(methodName); Method method = clazz.getMethod(methodName);
Object appInstance = method.invoke(clazz); Object appInstance = method.invoke(clazz);
Class params[] = new Class[]{Window.class}; Class[] params = new Class[]{Window.class};
method = clazz.getMethod(methodName2, params); method = clazz.getMethod(methodName2, params);
method.invoke(appInstance, window); method.invoke(appInstance, window);
} catch (Throwable t) { } catch (Throwable t) {

View file

@ -23,7 +23,7 @@ public class MageClip {
private final AudioGroup audioGroup; private final AudioGroup audioGroup;
private final String filename; private final String filename;
private final byte buf[]; private final byte[] buf;
public MageClip(String filename, AudioGroup audioGroup) { public MageClip(String filename, AudioGroup audioGroup) {
this.filename = filename; this.filename = filename;