Skip to content

Commit 9854b13

Browse files
Update java/client/build.gradle
Co-authored-by: Yury-Fridlyand <[email protected]>
1 parent ddd59ea commit 9854b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/client/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ dependencies {
3434
ext {
3535
checkProtocVersion = { String output ->
3636
// Line in format like: libprotoc 26.1
37-
int majorVersion = java.lang.Integer.parseInt(output.split(" ")[1].split("\\.")[0].trim());
38-
int minorVersion = java.lang.Integer.parseInt(output.split(" ")[1].split("\\.")[1].trim());
37+
int majorVersion = Integer.parseInt(output.split(" ")[1].split("\\.")[0].trim());
38+
int minorVersion = Integer.parseInt(output.split(" ")[1].split("\\.")[1].trim());
3939
if (majorVersion < 26 || (majorVersion == 26 && minorVersion < 1)) {
4040
throw new GradleException("Use Protoc version 26.1 or later");
4141
}

0 commit comments

Comments
 (0)