Simple Cleanups (#61)

Cleans up the code a tiny bit, moving comments around, removing some
`@SuppressWarnings` and some unused code, and using modern Java
features.

These changes should require no modifications to any outside mods.

---------

Co-authored-by: Glease <[email protected]>
This commit is contained in:
Nikolay S.andGlease authored and GitHub committed 2026-06-19 15:31:17 +02:00
1 parent 287e8317c9
commit 2c5fa02a9e
20 files changed
+746 -153

No files matched your search

+5 -4
View File
@@ -5,6 +5,7 @@ on:
branches:
- master
- feature/doc
- '**/*-javadoc'
tags:
- '*'
delete:
@@ -26,7 +27,7 @@ jobs:
with:
fetch-depth: 0
ref: gh-pages
- name: Deploy 🚀
id: deploy
shell: bash
@@ -34,17 +35,17 @@ jobs:
if git rm -r $TARGET_FOLDER ; then
echo Nothing to clean up
fi
find . -name javadoc -type d -print | sed 's#^\./\(.*\)/javadoc$#\1#' | sort --version-sort --reverse > index.txt
git add index.txt
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR_ID}-${GITHUB_ACTOR}@users.noreply.github.com"
git commit -m "Clean up javadoc after ref $TARGET_FOLDER is deleted"
git push
echo "hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
echo "hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
env:
TARGET_FOLDER: ${{ github.ref_name }}
javadoc:
if: github.event_name == 'push'
concurrency: javadoc-publish