Skip to content

Commit baf76ac

Browse files
committed
update main to old style as checkstyle doesn't support java 25 main
Signed-off-by: neo <1100909+neowu@users.noreply.github.com>
1 parent 10c0563 commit baf76ac

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

buildSrc/src/main/check/pmd.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@
8888
<rule ref="category/java/design.xml/SwitchDensity"/>
8989
<rule ref="category/java/design.xml/UselessOverridingMethod"/>
9090

91-
<!-- <rule ref="category/java/errorprone.xml/AssignmentInOperand"/>-->
91+
<rule ref="category/java/errorprone.xml/AssignmentInOperand">
92+
<properties>
93+
<property name="allowIncrementDecrement" value="true"/>
94+
</properties>
95+
</rule>
9296
<rule ref="category/java/errorprone.xml/AssignmentToNonFinalStatic"/>
9397
<rule ref="category/java/errorprone.xml/AvoidAssertAsIdentifier"/>
9498
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop"/>
@@ -137,7 +141,7 @@
137141
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals"/>
138142
<rule ref="category/java/errorprone.xml/UseCorrectExceptionLogging"/>
139143
<rule ref="category/java/errorprone.xml/UseEqualsToCompareStrings"/>
140-
<!-- <rule ref="category/java/errorprone.xml/UselessPureMethodCall" />-->
144+
<!--<rule ref="category/java/errorprone.xml/UselessPureMethodCall"/>-->
141145
<rule ref="category/java/errorprone.xml/UseLocaleWithCaseConversions"/>
142146
<rule ref="category/java/errorprone.xml/UseProperClassLoader"/>
143147

buildSrc/src/main/kotlin/check.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apply(plugin = "jacoco-report-aggregation")
1616

1717
checkstyle {
1818
dependencies {
19-
checkstyle("com.puppycrawl.tools:checkstyle:11.0.1")
19+
checkstyle("com.puppycrawl.tools:checkstyle:11.1.0")
2020
checkstyle("com.github.sevntu-checkstyle:sevntu-checks:1.44.1")
2121
}
2222

ext/log-collector/src/main/java/Main.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
* @author neo
55
*/
6-
void main() {
7-
new LogCollectorApp().start();
6+
class Main {
7+
void main() {
8+
new LogCollectorApp().start();
9+
}
810
}

ext/log-exporter/src/main/java/Main.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
* @author neo
55
*/
6-
void main() {
7-
new LogExporterApp().start();
6+
class Main {
7+
void main() {
8+
new LogExporterApp().start();
9+
}
810
}

ext/log-processor/src/main/java/Main.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
* @author neo
55
*/
6-
void main() {
7-
new LogProcessorApp().start();
6+
class Main {
7+
void main() {
8+
new LogProcessorApp().start();
9+
}
810
}

ext/monitor/src/main/java/Main.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
* @author ericchung
55
*/
6-
void main() {
7-
new MonitorApp().start();
6+
class Main {
7+
void main() {
8+
new MonitorApp().start();
9+
}
810
}

0 commit comments

Comments
 (0)