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
15 lines
456 B
Java
15 lines
456 B
Java
package p.studio.api.diagnostic;
|
|
|
|
import java.util.Objects;
|
|
|
|
public record StudioDiagnostic(String code, DiagnosticSeverity severity, String message) {
|
|
public StudioDiagnostic {
|
|
Objects.requireNonNull(code, "code");
|
|
Objects.requireNonNull(severity, "severity");
|
|
Objects.requireNonNull(message, "message");
|
|
if (code.isBlank()) {
|
|
throw new IllegalArgumentException("code must not be blank");
|
|
}
|
|
}
|
|
}
|