Skip to content

Commit 4013725

Browse files
committed
cleanup
1 parent 4259b58 commit 4013725

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ TransportVersionUpperBound getUpperBoundFromMain(String releaseBranch) {
190190
return getMainFile(resourcePath, TransportVersionUpperBound::fromString);
191191
}
192192

193+
/** Retrieve all upper bounds that exist on main */
193194
List<TransportVersionUpperBound> getUpperBoundsFromMain() throws IOException {
194195
List<TransportVersionUpperBound> upperBounds = new ArrayList<>();
195196
for (String mainPathString : getMainResources()) {
@@ -203,6 +204,7 @@ List<TransportVersionUpperBound> getUpperBoundsFromMain() throws IOException {
203204
return upperBounds;
204205
}
205206

207+
/** Write the given upper bound to a file in the transport resources */
206208
void writeUpperBound(TransportVersionUpperBound upperBound) throws IOException {
207209
Path path = transportResourcesDir.resolve(getUpperBoundRelativePath(upperBound.releaseBranch()));
208210
logger.debug("Writing upper bound [" + upperBound + "] to [" + path + "]");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* An object to represent the loaded version of a transport version upper bound.
1616
*
17-
* An upper bound is the maximum transport version id that should be loaded for a given release releaseBranch.
17+
* An upper bound is the maximum transport version id that should be loaded for a given release branch.
1818
*/
1919
record TransportVersionUpperBound(String releaseBranch, String name, TransportVersionId id) {
2020
public static TransportVersionUpperBound fromString(Path file, String contents) {

0 commit comments

Comments
 (0)