private List<String> toVersionList(List<JApiCmpArchive> archives) { List<String> versions = new ArrayList<>(archives.size()); for (JApiCmpArchive archive : archives) { String stringVersion = archive.getVersion().getStringVersion(); if (stringVersion != null) { versions.add(stringVersion); } } return versions; }
public static List<String> toVersionList(List<JApiCmpArchive> archives) { List<String> versions = new ArrayList<>(archives.size()); for (JApiCmpArchive archive : archives) { versions.add(archive.getVersion().getStringVersion()); } return versions; }
private List<String> toVersionList(List<JApiCmpArchive> archives) { List<String> versions = new ArrayList<>(archives.size()); for (JApiCmpArchive archive : archives) { String stringVersion = archive.getVersion().getStringVersion(); if (stringVersion != null) { versions.add(stringVersion); } } return versions; }
public static List<String> toVersionList(List<JApiCmpArchive> archives) { List<String> versions = new ArrayList<>(archives.size()); for (JApiCmpArchive archive : archives) { versions.add(archive.getVersion().getStringVersion()); } return versions; }
List<SemanticVersion> newVersions = new ArrayList<>(); for (JApiCmpArchive file : this.oldArchives) { Optional<SemanticVersion> semanticVersion = file.getVersion().getSemanticVersion(); if (semanticVersion.isPresent()) { oldVersions.add(semanticVersion.get()); Optional<SemanticVersion> semanticVersion = file.getVersion().getSemanticVersion(); if (semanticVersion.isPresent()) { newVersions.add(semanticVersion.get());
List<SemanticVersion> newVersions = new ArrayList<>(); for (JApiCmpArchive file : options.getOldArchives()) { Optional<SemanticVersion> semanticVersion = file.getVersion().getSemanticVersion(); if (semanticVersion.isPresent()) { oldVersions.add(semanticVersion.get()); Optional<SemanticVersion> semanticVersion = file.getVersion().getSemanticVersion(); if (semanticVersion.isPresent()) { newVersions.add(semanticVersion.get());
List<SemanticVersion> newVersions = new ArrayList<>(); for (JApiCmpArchive file : options.getOldArchives()) { Optional<SemanticVersion> semanticVersion = file.getVersion().getSemanticVersion(); if (semanticVersion.isPresent()) { oldVersions.add(semanticVersion.get()); Optional<SemanticVersion> semanticVersion = file.getVersion().getSemanticVersion(); if (semanticVersion.isPresent()) { newVersions.add(semanticVersion.get());