Empty new line at the end of the Java source files

前端 未结 9 697
春和景丽
春和景丽 2021-02-01 00:44

In my current project, we always insert an empty new line at the end of the Java source files. We also enforce this with CheckStyle (with error level).

I was searching fo

相关标签:
9条回答
  • 2021-02-01 01:32

    It is just a coding style. Doesn't hurt or help anything. I would not let it bother you it sounds like it is your teams preference to include and empty line. There is not really a good argument against it other than why does anyone care enough to actually add it to checkstyle?

    0 讨论(0)
  • 2021-02-01 01:33

    Sometimes your compiler doesn't parse it correctly:

    Error: Reached end of file while parsing

    0 讨论(0)
  • 2021-02-01 01:35

    Try to cut/paste the whole file. Something bug in checkstyle or eclipse : )

    0 讨论(0)
提交回复
热议问题