Skip to content

Commit

Permalink
Enable DefaultComesLast Checkstyle check (jenkinsci#5963)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Nov 26, 2021
1 parent 62cdc38 commit d2fa876
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/hudson/util/LineEndingConversion.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ public static String convertEOL(String input, EOLType type) {
// Convert line endings to Windows CR/LF
input = input.replace("\n", "\r\n");
break;
default:
case LF:
case Unix:
// Conversion already completed
return input;
case LFCR:
// Convert line endings to LF/CR
input = input.replace("\n", "\n\r");
break;
case LF:
case Unix:
default:
// Conversion already completed
return input;
}
return input;
}
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ THE SOFTWARE.
-->
<module name="AvoidNoArgumentSuperConstructorCall" />
<module name="CovariantEquals" />
<module name="DefaultComesLast" />
<module name="EqualsHashCode" />
<module name="NoEnumTrailingComma" />
<module name="OneStatementPerLine" />
Expand Down

0 comments on commit d2fa876

Please sign in to comment.