Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11694

Enforce space before left curly brace

    XMLWordPrintableJSON

Details

    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>>(){}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            chesnay Chesnay Schepler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m