| Priority |
Normal |
| Type | Bug |
| State | Fixed |
| Assignee | Bas Leijdekkers |
| Subsystem | Code Analysis. Inspection |
| Affected versions |
No affected versions
|
| Fixed in |
No fix versions
|
| Fixed in build |
Next build |
| Build |
7318
|
| Fixed in build |
8148
|
| Severity |
0
|
IDEA-41316 |
"Exception immediately rethrown" false positive |
|
|
try {
Thread.sleep(aWhile);
} catch (InterruptedException ex) {
if (acknowledgeInterruptAndStop()) throw ex;
}
@SuppressWarnings({"CaughtExceptionImmediatelyRethrown"}) protected static Method getActionMethod(final Class<?> actionClass, final String methodName) throws NoSuchMethodException { Method method; try { method = actionClass.getMethod(methodName, NO_PARAMS); } catch (NoSuchMethodException e) { // hmm -- OK, try doXxx instead try { final String altMethodName = "do" + methodName.substring(0, 1).toUpperCase() + methodName.substring(1); method = actionClass.getMethod(altMethodName, NO_PARAMS); } catch (NoSuchMethodException e1) { // throw the original one throw e; } } return method; }
It is far from being immediately rethrown ...