Details
-
Improvement
-
Status: Closed
-
Not a Priority
-
Resolution: Fixed
-
None
-
None
Description
We currently don't enforce spaces before left curly brace ({), as a result of which the following code block would not raise any error:
void someMethod(){ if (someCondition){ try { ... } catch (Exception e){ ... } } }
It is not the aim of this JIRA to forbid {} as a shorthand for empty bodies, such as:
new TypeHint<Tuple2<String, Integer>>(){}