Skip to content

Commit

Permalink
fixed format violations in Utils.getJavaMajorVersion method
Browse files Browse the repository at this point in the history
  • Loading branch information
sdenboer authored and mbarrios-simscale committed Apr 16, 2022
1 parent c216a49 commit f9398df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tlschannel/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static int getJavaMajorVersion() {
// 9.0.1
int dotPos = version.indexOf('.');
int dashPos = version.indexOf('-');
return Integer.parseInt(version.substring(0,
dotPos > -1 ? dotPos : dashPos > -1 ? dashPos : 1));
return Integer.parseInt(
version.substring(0, dotPos > -1 ? dotPos : dashPos > -1 ? dashPos : 1));
}
}

0 comments on commit f9398df

Please sign in to comment.