Skip to content

Commit 21ae796

Browse files
style: spotless
1 parent 18a659b commit 21ae796

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/CiVisibilityRepoServices.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ static PullRequestInfo buildPullRequestInfo(
125125
}
126126

127127
// complete with CI vars if user didn't provide all information
128-
PullRequestInfo ciInfo = PullRequestInfo.coalesce(userInfo, ciProviderInfo.buildPullRequestInfo());
128+
PullRequestInfo ciInfo =
129+
PullRequestInfo.coalesce(userInfo, ciProviderInfo.buildPullRequestInfo());
129130
String headSha = ciInfo.getHeadCommit().getSha();
130131
if (Strings.isNotBlank(headSha)) {
131132
// if head sha present try to populate author, committer and message info through git client

dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/ci/PullRequestInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public boolean isComplete() {
7373
* @param second Fallback PR info
7474
* @return Combined PR info
7575
*/
76-
public static PullRequestInfo coalesce(final PullRequestInfo first, final PullRequestInfo second) {
76+
public static PullRequestInfo coalesce(
77+
final PullRequestInfo first, final PullRequestInfo second) {
7778
return new PullRequestInfo(
7879
Strings.coalesce(first.baseBranch, second.baseBranch),
7980
Strings.coalesce(first.baseBranchSha, second.baseBranchSha),

internal-api/src/main/java/datadog/trace/util/Strings.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ public static String[] concat(String[] arr, String... extra) {
242242
return result;
243243
}
244244

245-
/**
246-
* @return first non-blank string out of the two, {@code null} if both are blank
247-
*/
245+
/** @return first non-blank string out of the two, {@code null} if both are blank */
248246
@Nullable
249247
public static String coalesce(@Nullable final String first, @Nullable final String second) {
250248
if (isNotBlank(first)) {

0 commit comments

Comments
 (0)