Skip to content

Commit

Permalink
Use Java 17 string formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Jan 25, 2025
1 parent aab6dff commit 29f1b4d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ public int hashCode() {

@Override
public String toString() {
return String.format(
"ProvisioningActivity for %s/%s/%s (%d)", cloudName, templateName, nodeName, fingerprint);
return "ProvisioningActivity for %s/%s/%s (%d)".formatted(cloudName, templateName, nodeName, fingerprint);
}
}

Expand Down

0 comments on commit 29f1b4d

Please sign in to comment.