mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Add checkerframework compilation checking (#109)
* Reorder nullability annotations again * Add checker validation to API module * Add checker validation to Common module * Begin checker validation for Bukkit module * It compiles!
This commit is contained in:
1 parent
3314a51df8
commit
d9ab711adc
83 files changed
+1127
-717
No files matched your search
@@ -9,10 +9,10 @@ import java.util.List;
|
||||
@ConfigSerializable
|
||||
public class Context {
|
||||
|
||||
@Setting private @NonNull final String key;
|
||||
@Setting private @NonNull final Object value;
|
||||
@Setting private final @NonNull String key;
|
||||
@Setting private final @NonNull Object value;
|
||||
|
||||
public Context(@NonNull final String key, @NonNull final Object value) {
|
||||
public Context(final @NonNull String key, final @NonNull Object value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ public class Context {
|
||||
final Object value = list.get(0);
|
||||
|
||||
if (value != null) {
|
||||
return list.get(0).getClass().isAssignableFrom(type);
|
||||
return value.getClass().isAssignableFrom(type);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user