Skip to content

Commit

Permalink
checkstyle suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed May 19, 2018
1 parent 6d05b45 commit 654e772
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ protected boolean parseManifest(Dependency dependency, List<ClassNameInformation
value = value.substring(15);
}
if (IGNORE_VALUES.contains(value)) {
//noinspection UnnecessaryContinue
continue;
} else if (key.equalsIgnoreCase(Attributes.Name.IMPLEMENTATION_TITLE.toString())) {
foundSomething = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
generatingSite = false;
boolean shouldSkip = Boolean.parseBoolean(System.getProperty("dependency-check.skip", Boolean.toString(skip)));
final boolean shouldSkip = Boolean.parseBoolean(System.getProperty("dependency-check.skip", Boolean.toString(skip)));
if (shouldSkip) {
getLog().info("Skipping " + getName(Locale.US));
} else {
Expand Down Expand Up @@ -662,7 +662,7 @@ protected boolean isFailOnError() {
* @throws MavenReportException if a maven report exception occurs
*/
public void generate(Sink sink, Locale locale) throws MavenReportException {
boolean shouldSkip = Boolean.parseBoolean(System.getProperty("dependency-check.skip", Boolean.toString(skip)));
final boolean shouldSkip = Boolean.parseBoolean(System.getProperty("dependency-check.skip", Boolean.toString(skip)));
if (shouldSkip) {
getLog().info("Skipping report generation " + getName(Locale.US));
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class SSLSocketFactoryEx extends SSLSocketFactory {
* The configured settings.
*/
private final Settings settings;

/**
* Simple boolean flag to prevent logging the protocols repeatedly.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public PasswordAuthentication getPasswordAuthentication() {
}
throw new URLConnectionFailureException("Error getting connection.", ex);
}
//conn.setRequestProperty("user-agent",
//conn.setRequestProperty("user-agent",
// "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36");
configureTLS(url, conn);
return conn;
Expand Down

0 comments on commit 654e772

Please sign in to comment.