Inline single use local variable.
* @return a new UncheckedIOException.
*/
public static UncheckedIOException create(final Object message) {
- final String string = Objects.toString(message);
- return new UncheckedIOException(string, new IOException(string));
+ return new UncheckedIOException(Objects.toString(message), new IOException(Objects.toString(message)));
}
/**
