Intrepid/Prometeu/Studio/pipeline/pr-master Build started...
JaCoCo Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 64.01% (20482/31999)
* Branch Coverage: 54.22% (8240/15196)
* Lines of Code: 31999
* Cyclomatic Complexity: 13164
#### Quality Gates Summary
Output truncated.
Test / Build skipped: 15, passed: 715
Intrepid/Prometeu/Studio/pipeline/head This commit looks good
29 lines
967 B
Java
29 lines
967 B
Java
package p.studio.api.assets;
|
|
|
|
import java.nio.file.Path;
|
|
import java.util.Objects;
|
|
|
|
public record AssetSummary(
|
|
AssetReference reference,
|
|
String name,
|
|
AssetRegistrationState registrationState,
|
|
AssetBuildParticipation buildParticipation,
|
|
Integer assetId,
|
|
AssetFamily family,
|
|
Path root,
|
|
boolean preload,
|
|
boolean hasDiagnostics) {
|
|
|
|
public AssetSummary {
|
|
Objects.requireNonNull(reference, "reference");
|
|
name = Objects.requireNonNull(name, "name").trim();
|
|
Objects.requireNonNull(registrationState, "registrationState");
|
|
Objects.requireNonNull(buildParticipation, "buildParticipation");
|
|
family = Objects.requireNonNullElse(family, AssetFamily.UNKNOWN);
|
|
root = Objects.requireNonNull(root, "root").toAbsolutePath().normalize();
|
|
if (name.isBlank()) {
|
|
throw new IllegalArgumentException("name must not be blank");
|
|
}
|
|
}
|
|
}
|