mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +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(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
JFrame frame = new JFrame();
|
JFrame frame = new JFrame();
|
||||||
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue