in src/main/java/org/apache/sling/provisioning/model/Artifact.java [70:92]
public Artifact(final String gId,
final String aId,
final String version,
final String classifier,
final String type,
final Map<String, String> metadata) {
this.groupId = (gId != null ? gId.trim() : null);
this.artifactId = (aId != null ? aId.trim() : null);
this.version = (version != null ? version.trim() : null);
final String trimmedType = (type != null ? type.trim() : null);
if ( "bundle".equals(trimmedType) || trimmedType == null || trimmedType.isEmpty() ) {
this.type = "jar";
} else {
this.type = trimmedType;
}
final String trimmedClassifier = (classifier != null ? classifier.trim() : null);
if ( trimmedClassifier != null && trimmedClassifier.isEmpty() ) {
this.classifier = null;
} else {
this.classifier = trimmedClassifier;
}
this.metadata.putAll(metadata);
}