IG: exclude another method from moving when scope to broad

This commit is contained in:
Bas Leijdekkers
2016-07-17 23:55:50 +02:00
parent 24dfcdc79a
commit fa0ab89b09
@@ -192,7 +192,8 @@ public class TooBroadScopeInspectionBase extends BaseInspection {
return false;
}
final String methodName = method.getName();
return !"now".equals(methodName) && !"currentTimeMillis".equals(methodName) && !"nanoTime".equals(methodName);
return !"now".equals(methodName) && !"currentTimeMillis".equals(methodName) &&
!"nanoTime".equals(methodName) && !"waitFor".equals(methodName);
}
private static boolean isAllowedType(PsiType type) {