3.2.0 includes "The default parsing byte size limit has been raised from 64MB to 2GB"
next versions include bug fixes and performance improvements
<okhttp.version>3.7.0</okhttp.version>
<jackson.version>2.6.6</jackson.version>
<jjwt.version>0.9.0</jjwt.version>
- <protobuf.version>3.0.0-beta-2</protobuf.version>
+ <protobuf.version>3.5.1</protobuf.version>
<hazelcast.version>3.8.6</hazelcast.version>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
- <version>0.5.0</version>
+ <version>0.5.1</version>
</plugin>
<plugin>
<groupId>com.github.genthaler</groupId>
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Maps;
-import com.google.protobuf.GeneratedMessage;
+import com.google.protobuf.GeneratedMessageV3;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
}
}
- public <T extends GeneratedMessage> T executeProtobuf(Class<T> protobufClass) {
+ public <T extends GeneratedMessageV3> T executeProtobuf(Class<T> protobufClass) {
return setMediaType(PROTOBUF).execute().getInputObject(protobufClass);
}
*/
package org.sonar.server.ws;
-import com.google.protobuf.GeneratedMessage;
+import com.google.protobuf.GeneratedMessageV3;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.lang.reflect.Method;
return new ByteArrayInputStream(dumbResponse.getFlushedOutput());
}
- public <T extends GeneratedMessage> T getInputObject(Class<T> protobufClass) {
+ public <T extends GeneratedMessageV3> T getInputObject(Class<T> protobufClass) {
try (InputStream input = getInputStream()) {
Method parseFromMethod = protobufClass.getMethod("parseFrom", InputStream.class);
@SuppressWarnings("unchecked")