1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-07 04:47:55 +00:00

Generic dependency update

A couple of changes caused by checkstyle being a little more strict.
This commit is contained in:
Jonathan Coates
2023-08-31 19:14:37 +01:00
parent 8fb1dd346c
commit 5dd6b9a637
22 changed files with 2104 additions and 528 deletions

View File

@@ -32,7 +32,7 @@ enum class Side { CLIENT, SERVER, BOTH }
)
class SideChecker : BugChecker(), BugChecker.IdentifierTreeMatcher, BugChecker.MemberSelectTreeMatcher {
override fun matchIdentifier(tree: IdentifierTree, state: VisitorState): Description {
val sym = ASTHelpers.getSymbol(tree)
val sym = ASTHelpers.getSymbol(tree)!!
return when (sym.getKind()) {
ElementKind.LOCAL_VARIABLE, ElementKind.TYPE_PARAMETER -> Description.NO_MATCH
else -> report(tree, state)