Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311043

Remove trailing blank lines in source files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Rejected
    • Icon: P4 P4
    • None
    • None
    • infrastructure
    • None

      Remove trailing "blank" lines in source files.

      I like to use global-whitespace-cleanup-mode, but I can not use it if the files are "dirty" to begin with. This fix will make more files "clean". I also considered adding a check for this in jcheck for skara, however it seems jcheck code handling hunks does not track end-of-files.

      The fix removes trailing lines matching ^[[:space:]]*$ in
      *.java
      *.cpp
      *.hpp
      *.c
      *.h

            lkorinth Leo Korinth
            lkorinth Leo Korinth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: