fixups from errorprone

This commit is contained in:
gnembon committed 2026-09-17 17:11:07 +02:00
1 parent c6d48ab485
commit e7671bd022
52 files changed
+473 -588

No files matched your search

@@ -77,9 +77,8 @@ public interface ValueConverter<R>
* @return A converted value
* @deprecated Calling this method instead of {@link #convert(Value, Context)} may not return values for some converters
*/
@Nullable
@Deprecated(forRemoval = true)
default R convert(Value value)
default @Nullable R convert(Value value)
{
try
{
@@ -211,8 +210,7 @@ public interface ValueConverter<R>
* @implNote This method's default implementation runs the {@link #convert(Value, Context)} function in the next {@link Value} ignoring {@link Context} and
* {@code theLazyT}.
*/
@Nullable
default R checkAndConvert(Iterator<Value> valueIterator, Context context, Context.Type contextType)
default @Nullable R checkAndConvert(Iterator<Value> valueIterator, Context context, Context.Type contextType)
{
return !valueIterator.hasNext() ? null : convert(valueIterator.next(), context);
}