Eclipse formatting (#176)

* Make eclipse formatter better follow our conventions and format all of it
* Don't join wrapped lines to allow for hand-formatting
* Fix formatting of switch statements and add breaks in enum declarations
* Use new formatter by @thebutlah, adjust formatter more
This commit is contained in:
Eiren Rain authored and GitHub committed 2022-05-16 20:05:46 +03:00
1 parent c74cc539c9
commit 1dea626422
114 files changed
+5580 -2661

No files matched your search

@@ -4,11 +4,17 @@ import javax.swing.*;
import java.util.Timer;
import java.util.TimerTask;
public class ButtonTimer {
private static final Timer timer = new Timer();
public static void runTimer(AbstractButton button, int seconds, String defaultText, Runnable runnable) {
public static void runTimer(
AbstractButton button,
int seconds,
String defaultText,
Runnable runnable
) {
if (seconds <= 0) {
button.setText(defaultText);
runnable.run();
@@ -25,7 +31,12 @@ public class ButtonTimer {
private final String defaultText;
private final Runnable runnable;
private ButtonTimerTask(AbstractButton button, int seconds, String defaultText, Runnable runnable) {
private ButtonTimerTask(
AbstractButton button,
int seconds,
String defaultText,
Runnable runnable
) {
this.button = button;
this.seconds = seconds;
this.defaultText = defaultText;