Skip to content

Commit 90f62ae

Browse files
Code cleanup (Silent cleanup via IntelliJ)
1 parent a9c1930 commit 90f62ae

File tree

46 files changed

+149
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+149
-160
lines changed

buildSrc/src/main/kotlin/net.sf.robocode.java-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ java {
2323
}
2424

2525
tasks {
26-
withType<JavaCompile>() {
26+
withType<JavaCompile> {
2727
options.encoding = "UTF-8"
2828
}
2929
}

robocode.api/src/main/java/robocode/BattleEndedEvent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ public BattleResults getResults() {
7373
* {@inheritDoc}
7474
*/
7575
@Override
76-
final int getDefaultPriority() {
76+
int getDefaultPriority() {
7777
return DEFAULT_PRIORITY;
7878
}
7979

8080
/**
8181
* {@inheritDoc}
8282
*/
8383
@Override
84-
public final int getPriority() {
84+
public int getPriority() {
8585
return DEFAULT_PRIORITY;
8686
}
8787

8888
/**
8989
* {@inheritDoc}
9090
*/
9191
@Override
92-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
92+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
9393
if (robot != null) {
9494
IBasicEvents listener = robot.getBasicEventListener();
9595

@@ -103,7 +103,7 @@ final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphic
103103
* {@inheritDoc}
104104
*/
105105
@Override
106-
final boolean isCriticalEvent() {
106+
boolean isCriticalEvent() {
107107
return true;
108108
}
109109

robocode.api/src/main/java/robocode/BulletHitBulletEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ public Bullet getHitBullet() {
6666
* {@inheritDoc}
6767
*/
6868
@Override
69-
final int getDefaultPriority() {
69+
int getDefaultPriority() {
7070
return DEFAULT_PRIORITY;
7171
}
7272

7373
/**
7474
* {@inheritDoc}
7575
*/
7676
@Override
77-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
77+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
7878
IBasicEvents listener = robot.getBasicEventListener();
7979

8080
if (listener != null) {

robocode.api/src/main/java/robocode/BulletHitEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ public String getRobotName() {
106106
* {@inheritDoc}
107107
*/
108108
@Override
109-
final int getDefaultPriority() {
109+
int getDefaultPriority() {
110110
return DEFAULT_PRIORITY;
111111
}
112112

113113
/**
114114
* {@inheritDoc}
115115
*/
116116
@Override
117-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
117+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
118118
IBasicEvents listener = robot.getBasicEventListener();
119119

120120
if (listener != null) {

robocode.api/src/main/java/robocode/BulletMissedEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public Bullet getBullet() {
5454
* {@inheritDoc}
5555
*/
5656
@Override
57-
final int getDefaultPriority() {
57+
int getDefaultPriority() {
5858
return DEFAULT_PRIORITY;
5959
}
6060

6161
/**
6262
* {@inheritDoc}
6363
*/
6464
@Override
65-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
65+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
6666
IBasicEvents listener = robot.getBasicEventListener();
6767

6868
if (listener != null) {

robocode.api/src/main/java/robocode/DeathEvent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ public DeathEvent() {
4040
* {@inheritDoc}
4141
*/
4242
@Override
43-
public final int getPriority() {
43+
public int getPriority() {
4444
return DEFAULT_PRIORITY;
4545
}
4646

4747
/**
4848
* {@inheritDoc}
4949
*/
5050
@Override
51-
final int getDefaultPriority() {
51+
int getDefaultPriority() {
5252
return DEFAULT_PRIORITY;
5353
}
5454

5555
/**
5656
* {@inheritDoc}
5757
*/
5858
@Override
59-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
59+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
6060
IBasicEvents listener = robot.getBasicEventListener();
6161

6262
if (listener != null) {
@@ -68,7 +68,7 @@ final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphic
6868
* {@inheritDoc}
6969
*/
7070
@Override
71-
final boolean isCriticalEvent() {
71+
boolean isCriticalEvent() {
7272
return true;
7373
}
7474

robocode.api/src/main/java/robocode/HitByBulletEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ public double getVelocity() {
152152
* {@inheritDoc}
153153
*/
154154
@Override
155-
final int getDefaultPriority() {
155+
int getDefaultPriority() {
156156
return DEFAULT_PRIORITY;
157157
}
158158

159159
/**
160160
* {@inheritDoc}
161161
*/
162162
@Override
163-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
163+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
164164
IBasicEvents listener = robot.getBasicEventListener();
165165

166166
if (listener != null) {

robocode.api/src/main/java/robocode/HitRobotEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public boolean isMyFault() {
128128
* {@inheritDoc}
129129
*/
130130
@Override
131-
public final int compareTo(Event event) {
131+
public int compareTo(Event event) {
132132
final int res = super.compareTo(event);
133133

134134
if (res != 0) {
@@ -152,15 +152,15 @@ public final int compareTo(Event event) {
152152
* {@inheritDoc}
153153
*/
154154
@Override
155-
final int getDefaultPriority() {
155+
int getDefaultPriority() {
156156
return DEFAULT_PRIORITY;
157157
}
158158

159159
/**
160160
* {@inheritDoc}
161161
*/
162162
@Override
163-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
163+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
164164
IBasicEvents listener = robot.getBasicEventListener();
165165

166166
if (listener != null) {

robocode.api/src/main/java/robocode/HitWallEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ public double getBearingRadians() {
7474
* {@inheritDoc}
7575
*/
7676
@Override
77-
final int getDefaultPriority() {
77+
int getDefaultPriority() {
7878
return DEFAULT_PRIORITY;
7979
}
8080

8181
/**
8282
* {@inheritDoc}
8383
*/
8484
@Override
85-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
85+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
8686
IBasicEvents listener = robot.getBasicEventListener();
8787

8888
if (listener != null) {

robocode.api/src/main/java/robocode/KeyPressedEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public KeyPressedEvent(java.awt.event.KeyEvent source) {
4949
* {@inheritDoc}
5050
*/
5151
@Override
52-
final int getDefaultPriority() {
52+
int getDefaultPriority() {
5353
return DEFAULT_PRIORITY;
5454
}
5555

5656
/**
5757
* {@inheritDoc}
5858
*/
5959
@Override
60-
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
60+
void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
6161
if (statics.isInteractiveRobot()) {
6262
IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();
6363

0 commit comments

Comments
 (0)