Skip to content

Commit 91da767

Browse files
committed
more compile
1 parent d744320 commit 91da767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private void resetUpperBound(
156156
if (idsForUpperBound == null) {
157157
throw new RuntimeException("Could not find base id: " + upperBound.definitionId().base());
158158
}
159-
IdAndDefinition resetValue = idsForUpperBound.getLast();
159+
IdAndDefinition resetValue = idsForUpperBound.get(idsForUpperBound.size() - 1);
160160
if (resetValue.definition().name().equals(ignoreDefinitionName)) {
161161
// there must be another definition in this base since the ignored definition is new
162162
assert idsForUpperBound.size() >= 2;

0 commit comments

Comments
 (0)