Skip to content

remove redundant code #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ public void loadExcludeFromFailuresData(final String excludeFromFailureFile) thr
return;
}
final Properties props = new Properties();
try (FileInputStream fileInputStream = new FileInputStream(new File(excludeFromFailureFile))) {
try (FileInputStream fileInputStream = new FileInputStream(excludeFromFailureFile)) {
props.load(fileInputStream);
} catch (final IOException e) {
throw new MojoExecutionException("Cannot load properties file " + excludeFromFailureFile, e);
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ public int read() throws IOException {
return c;
}

while (c != -1 && c == BOM) {
while (c == BOM) {
c = super.read();
}
return c;