mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 04:25:19 +01:00
Add contract to ConfigEntry#getString(String)
for non-null-argument
The contract basically says that if you provide a non-null argument to the method, it cannot return a null value.
This commit is contained in:
parent
3a09c19dbb
commit
78b6039d39
@ -123,6 +123,7 @@ public class ConfigEntry {
|
||||
return value != null ? value.toString() : null;
|
||||
}
|
||||
|
||||
@Contract("!null -> !null")
|
||||
public @Nullable String getString(String fallbackValue) {
|
||||
Object value = get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user