Class SelfDefense
java.lang.Object
io.github.thecsdev.tcdcommons.api.util.integrity.SelfDefense
For when the mod has had enough, draws its weapons,
and starts defending its own integrity.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
dumpClassInfo
(Class<?> clazz) static void
reportClassInitializer
(Class<?> issueSource) A static initializer appeared where it shouldn't be? Report it here.
-
Field Details
-
LINE_SEPARATOR
-
MSG_INTEGRITY_VIOLATION_FOUND
- See Also:
-
-
Method Details
-
reportClassInitializer
A static initializer appeared where it shouldn't be? Report it here.Careful not to unintentionally trigger unwanted code in the initializer.
- Parameters:
issueSource
- The faultyClass
.- Throws:
ExceptionInInitializerError
- Always.
-
dumpClassInfo
Dumps aClass
's information in form ofString
that is then used for logging purposes. TheString
is intended to be "parseable" and "human-readable".- Parameters:
clazz
- The targetClass
.
-