We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd59ea commit 9854b13Copy full SHA for 9854b13
java/client/build.gradle
@@ -34,8 +34,8 @@ dependencies {
34
ext {
35
checkProtocVersion = { String output ->
36
// 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());
+ int majorVersion = Integer.parseInt(output.split(" ")[1].split("\\.")[0].trim());
+ int minorVersion = Integer.parseInt(output.split(" ")[1].split("\\.")[1].trim());
39
if (majorVersion < 26 || (majorVersion == 26 && minorVersion < 1)) {
40
throw new GradleException("Use Protoc version 26.1 or later");
41
}
0 commit comments