mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Replace use of Spring's StringUtils
This commit is contained in:
parent
658df7968e
commit
75ab51de1a
@ -25,8 +25,6 @@ import com.google.common.collect.Sets;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import static org.springframework.util.StringUtils.collectionToDelimitedString;
|
||||
|
||||
/**
|
||||
* A {@link joptsimple.ValueConverter} that supports case-insensitive conversion from
|
||||
* String to an enum label. Useful in conjunction with
|
||||
@ -57,7 +55,7 @@ class EnumValueConverter implements ValueConverter<Enum> {
|
||||
return result.get();
|
||||
}
|
||||
throw new IllegalArgumentException(String.format(
|
||||
"No enum constant %s.[%s]", enumType.getName(), collectionToDelimitedString(candidates, "|")));
|
||||
"No enum constant %s.{%s}", enumType.getSimpleName(), String.join("|", candidates)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user