mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
C-style arrays declaration should be replaced to java-style
This commit is contained in:
parent
b23ccb8191
commit
022c1407ed
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue