mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
Remove obsolete ParserUtils.selectNotNull().
This commit is contained in:
parent
a5f59319aa
commit
64df076576
1 changed files with 0 additions and 18 deletions
|
@ -623,24 +623,6 @@ public final class ParserUtils
|
|||
}
|
||||
}
|
||||
|
||||
public static <T> T selectNotNull(final T... groups)
|
||||
{
|
||||
T selected = null;
|
||||
|
||||
for (final T group : groups)
|
||||
{
|
||||
if (group != null)
|
||||
{
|
||||
if (selected == null)
|
||||
selected = group;
|
||||
else
|
||||
throw new IllegalStateException("ambiguous");
|
||||
}
|
||||
}
|
||||
|
||||
return selected;
|
||||
}
|
||||
|
||||
public static String firstNotEmpty(final String... strings)
|
||||
{
|
||||
for (final String str : strings)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue