Package com.sk89q.bukkit.util
Class ClassSourceValidator
java.lang.Object
com.sk89q.bukkit.util.ClassSourceValidator
Validates that certain specified classes came from the same source as
a plugin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindMismatches
(List<Class<?>> classes) Return a map of classes that been loaded from a different source.void
reportMismatches
(List<Class<?>> classes) Reports classes that have come from a different source.
-
Constructor Details
-
ClassSourceValidator
Create a new instance.- Parameters:
plugin
- The plugin
-
-
Method Details
-
findMismatches
Return a map of classes that been loaded from a different source.- Parameters:
classes
- A list of classes to check- Returns:
- The results
-
reportMismatches
Reports classes that have come from a different source.The warning is emitted to the log.
- Parameters:
classes
- The list of classes to check
-