Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
conforming to java idiom
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kerwin committed Sep 14, 2016
1 parent 0483f19 commit 8dda602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public class BuildArtifact implements Serializable {
private String id = null;

private void setId() {
if (null != group && null != artifact && null != version) {
if (group != null && artifact != null && version != null) {
id = group + ":" + artifact + ":" + version;
} else if (null != artifact && null != version) {
} else if (artifact != null && version != null) {
id = artifact + ":" + version;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class BuildDependency {
private String version;
private String id;
private String classifier;
private Set<String> scopes = new HashSet<String>();;
private Set<String> scopes = new HashSet<>();;
private String extension;
private MatchType matchType = MatchType.UNKNOWNMATCH;
private String projectName;
Expand All @@ -39,9 +39,9 @@ public class BuildDependency {
private VulnerabilityCounts vulnerabilityCounts = new VulnerabilityCounts();

private void setId() {
if (null != group && null != artifact && null != version) {
if (group != null && artifact != null && version != null) {
id = group + ":" + artifact + ":" + version;
} else if (null != artifact && null != version) {
} else if (artifact != null && version != null) {
id = artifact + ":" + version;
}
}
Expand Down

0 comments on commit 8dda602

Please sign in to comment.