Skip to content

Commit e5b8d15

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 9ade26c commit e5b8d15

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/transport/GenerateTransportVersionDefinitionTask.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ public abstract class GenerateTransportVersionDefinitionTask extends DefaultTask
4848

4949
@Input
5050
@Optional
51-
@Option(
52-
option = "name",
53-
description = "The name of the Transport Version definition, e.g. --name=my_new_tv"
54-
)
51+
@Option(option = "name", description = "The name of the Transport Version definition, e.g. --name=my_new_tv")
5552
public abstract Property<String> getTransportVersionName();
5653

5754
@Optional
@@ -108,12 +105,18 @@ private void checkReleaseBranches(List<TransportVersionUpperBound> mainUpperBoun
108105
if (missingBranches.isEmpty() == false) {
109106
List<String> sortedMissing = missingBranches.stream().sorted().toList();
110107
List<String> sortedKnown = knownReleaseBranches.stream().sorted().toList();
111-
throw new IllegalArgumentException("Missing upper bounds files for branches " + sortedMissing +
112-
", known branches are " + sortedKnown);
108+
throw new IllegalArgumentException(
109+
"Missing upper bounds files for branches " + sortedMissing + ", known branches are " + sortedKnown
110+
);
113111
}
114112
}
115113

116-
private List<TransportVersionId> updateUpperBoundsFiles(TransportVersionResourcesService resources, List<TransportVersionUpperBound> existingUpperBounds, Set<String> targetReleaseBranches, String name) throws IOException {
114+
private List<TransportVersionId> updateUpperBoundsFiles(
115+
TransportVersionResourcesService resources,
116+
List<TransportVersionUpperBound> existingUpperBounds,
117+
Set<String> targetReleaseBranches,
118+
String name
119+
) throws IOException {
117120
String mainReleaseBranch = getMainReleaseBranch().get();
118121
int primaryIncrement = getPrimaryIncrement().get();
119122
if (primaryIncrement <= 0) {

0 commit comments

Comments
 (0)