File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
java/client/src/org/openqa/selenium/remote Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 31
31
import org .openqa .selenium .WebDriverException ;
32
32
33
33
import java .lang .reflect .Constructor ;
34
- import java .lang .reflect .InvocationTargetException ;
35
34
import java .math .BigDecimal ;
36
35
import java .math .RoundingMode ;
37
36
import java .util .List ;
@@ -215,13 +214,7 @@ private <T extends Throwable> T createThrowable(
215
214
try {
216
215
Constructor <T > constructor = clazz .getConstructor (parameterTypes );
217
216
return constructor .newInstance (parameters );
218
- } catch (NoSuchMethodException e ) {
219
- // Do nothing - fall through.
220
- } catch (InvocationTargetException e ) {
221
- // Do nothing - fall through.
222
- } catch (InstantiationException e ) {
223
- // Do nothing - fall through.
224
- } catch (IllegalAccessException e ) {
217
+ } catch (ReflectiveOperationException e ) {
225
218
// Do nothing - fall through.
226
219
} catch (OutOfMemoryError error ) {
227
220
// It can happen...
You can’t perform that action at this time.
0 commit comments