Skip to content

Commit 6a34dab

Browse files
authored
Merge pull request #202 from litetex-oss/dev
Release
2 parents a97705b + 712bf1d commit 6a34dab

29 files changed

+107
-113
lines changed

.config/checkstyle/checkstyle.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<property name="ignoreFieldDeclaration" value="true"/>
9292
<property name="ignoreHashCodeMethod" value="true"/>
9393
<!-- Defaults + other common constant values (e.g. time) -->
94-
<property name="ignoreNumbers" value="-1, 0, 1, 2, 3, 4, 5, 10, 12, 24, 31, 60, 100, 1000"/>
94+
<property name="ignoreNumbers" value="-1, 0, 1, 2, 3, 4, 5, 8, 10, 12, 16, 24, 25, 31, 32, 50, 60, 64, 100, 128, 200, 256, 500, 512, 1000, 1024, 2000, 2048, 4000, 4096, 8000, 8192"/>
9595
</module>
9696
<module name="MemberName"/>
9797
<module name="MethodLength"/>
@@ -122,9 +122,7 @@
122122
<module name="StaticVariableName"/>
123123
<module name="StringLiteralEquality"/>
124124
<module name="SuppressWarningsHolder"/>
125-
<module name="TodoComment">
126-
<property name="severity" value="info"/>
127-
</module>
125+
<module name="TodoComment"/>
128126
<module name="TypecastParenPad"/>
129127
<module name="TypeName"/>
130128
<module name="UnnecessaryParentheses"/>

.config/pmd/java/ruleset.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22
<ruleset name="Default"
33
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
5+
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.github.io/ruleset_2_0_0.xsd">
66

77
<description>
88
This ruleset checks the code for discouraged programming constructs.
99
</description>
1010

1111
<!-- Only rules that don't overlap with CheckStyle! -->
1212

13+
<!-- About: Formatting -->
14+
<!-- Some lines (e.g. description, examples and CDATA) have to start without any indents or this will result in incorrect formatting -->
15+
1316
<rule ref="category/java/bestpractices.xml/AvoidPrintStackTrace"/>
14-
<rule ref="category/java/bestpractices.xml/AvoidStringBufferField"/>
1517
<rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP"/>
1618
<rule ref="category/java/bestpractices.xml/ConstantsInInterface"/>
1719
<rule ref="category/java/bestpractices.xml/ExhaustiveSwitchHasDefault"/>
20+
<rule ref="category/java/bestpractices.xml/LabeledStatement"/>
1821
<rule ref="category/java/bestpractices.xml/LiteralsFirstInComparisons"/>
1922
<!-- CheckStyle can't handle this switch behavior -> delegated to PMD -->
2023
<rule ref="category/java/bestpractices.xml/NonExhaustiveSwitch"/>
@@ -26,6 +29,7 @@
2629
<rule ref="category/java/bestpractices.xml/PreserveStackTrace"/>
2730
<rule ref="category/java/bestpractices.xml/SimplifiableTestAssertion"/>
2831
<rule ref="category/java/bestpractices.xml/SystemPrintln"/>
32+
<rule ref="category/java/bestpractices.xml/UnnecessaryWarningSuppression"/>
2933
<rule ref="category/java/bestpractices.xml/UnusedAssignment"/>
3034
<rule ref="category/java/bestpractices.xml/UnusedPrivateField"/>
3135
<rule ref="category/java/bestpractices.xml/UseCollectionIsEmpty"/>
@@ -144,13 +148,16 @@
144148
<rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices"/>
145149
<rule ref="category/java/errorprone.xml/EqualsNull"/>
146150
<rule ref="category/java/errorprone.xml/IdempotentOperations"/>
151+
<rule ref="category/java/errorprone.xml/IdenticalConditionalBranches"/>
147152
<rule ref="category/java/errorprone.xml/ImplicitSwitchFallThrough"/>
148153
<rule ref="category/java/errorprone.xml/InstantiationToGetClass"/>
149154
<rule ref="category/java/errorprone.xml/InvalidLogMessageFormat"/>
150155
<rule ref="category/java/errorprone.xml/JumbledIncrementer"/>
151156
<rule ref="category/java/errorprone.xml/MisplacedNullCheck"/>
152157
<rule ref="category/java/errorprone.xml/MoreThanOneLogger"/>
153158
<rule ref="category/java/errorprone.xml/NonStaticInitializer"/>
159+
<rule ref="category/java/errorprone.xml/ReplaceJavaUtilCalendar"/>
160+
<rule ref="category/java/errorprone.xml/ReplaceJavaUtilDate"/>
154161
<rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock"/>
155162
<rule ref="category/java/errorprone.xml/SingletonClassReturningNewInstance"/>
156163
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement"/>
@@ -183,6 +190,9 @@
183190
<!-- Handled by checkstyle -->
184191
<exclude name="RedundantFieldInitializer"/>
185192

193+
<!-- Not in use and resource intensive -->
194+
<exclude name="UseIOStreamsWithApacheCommonsFileItem"/>
195+
186196
<!-- Nowadays optimized by compiler; No code bloating needed -->
187197
<exclude name="UseStringBufferForStringAppends"/>
188198
</rule>

.github/workflows/broken-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 15
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1717

1818
- run: mv .github/.lycheeignore .lycheeignore
1919

.github/workflows/check-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
distribution: [temurin]
3232

3333
steps:
34-
- uses: actions/checkout@v5
34+
- uses: actions/checkout@v6
3535

3636
- name: Set up JDK
3737
uses: actions/setup-java@v5
@@ -91,7 +91,7 @@ jobs:
9191
distribution: [temurin]
9292

9393
steps:
94-
- uses: actions/checkout@v5
94+
- uses: actions/checkout@v6
9595

9696
- name: Set up JDK
9797
uses: actions/setup-java@v5
@@ -122,7 +122,7 @@ jobs:
122122
distribution: [temurin]
123123

124124
steps:
125-
- uses: actions/checkout@v5
125+
- uses: actions/checkout@v6
126126

127127
- name: Set up JDK
128128
uses: actions/setup-java@v5

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1717

1818
- name: Set up JDK
1919
uses: actions/setup-java@v5
@@ -59,7 +59,7 @@ jobs:
5959
outputs:
6060
upload_url: ${{ steps.create_release.outputs.upload_url }}
6161
steps:
62-
- uses: actions/checkout@v5
62+
- uses: actions/checkout@v6
6363

6464
- name: Configure Git
6565
run: |
@@ -124,7 +124,7 @@ jobs:
124124
needs: [prepare_release]
125125
timeout-minutes: 60
126126
steps:
127-
- uses: actions/checkout@v5
127+
- uses: actions/checkout@v6
128128

129129
- name: Set up JDK
130130
uses: actions/setup-java@v5
@@ -194,7 +194,7 @@ jobs:
194194
needs: [publish]
195195
timeout-minutes: 10
196196
steps:
197-
- uses: actions/checkout@v5
197+
- uses: actions/checkout@v6
198198

199199
- name: Init Git and pull
200200
run: |

.github/workflows/sync-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 10
1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020
with:
2121
sparse-checkout: .github/labels.yml
2222

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 60
1010
steps:
11-
- uses: actions/checkout@v5
11+
- uses: actions/checkout@v6
1212

1313
- name: Set up JDK
1414
uses: actions/setup-java@v5

.github/workflows/update-from-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
update_branch_merged_commit: ${{ steps.manage-branches.outputs.update_branch_merged_commit }}
3737
create_update_branch_merged_pr: ${{ steps.manage-branches.outputs.create_update_branch_merged_pr }}
3838
steps:
39-
- uses: actions/checkout@v5
39+
- uses: actions/checkout@v6
4040
with:
4141
# Required because otherwise there are always changes detected when executing diff/rev-list
4242
fetch-depth: 0
@@ -183,7 +183,7 @@ jobs:
183183
runs-on: ubuntu-latest
184184
timeout-minutes: 60
185185
steps:
186-
- uses: actions/checkout@v5
186+
- uses: actions/checkout@v6
187187
with:
188188
# Required because otherwise there are always changes detected when executing diff/rev-list
189189
fetch-depth: 0

.github/workflows/update-latest-mc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 10
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121
with:
2222
# Required because otherwise there are always changes detected when executing diff/rev-list
2323
fetch-depth: 0

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 4.2.0
2+
* Updated to 1.21.11
3+
4+
# 4.1.3
5+
* Fix broken build
6+
17
# 4.1.2
28
* Migrated to "official" mappings in preparation for the removal of obfuscation
39
* Updated dependencies

0 commit comments

Comments
 (0)