Add get(:Object: fieldName:String) and get(:Object, :Field) methods to ObjectUtils.
Add overloaded doOperationSafely(:ExceptionThrowingOperation, :Function<Throwable, T>) method.
This commit is contained in:
@@ -46,7 +46,7 @@ public class ObjectUtilsUnitTests {
|
||||
public void doOperationSafelyThrowsIllegalStateException() {
|
||||
|
||||
try {
|
||||
ObjectUtils.doOperationSafely(() -> { throw newRuntimeException("test"); }, null);
|
||||
ObjectUtils.doOperationSafely(() -> { throw newRuntimeException("test"); }, (Object) null);
|
||||
}
|
||||
catch (IllegalStateException expected) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user