File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/sonar-db-dao/src/main/java/org/sonar/db/source Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public DbFileSources.Data decodeSourceData(byte[] binaryData) {
107107 }
108108
109109 private static DbFileSources .Data decodeRegularSourceData (byte [] binaryData ) throws IOException {
110- try (LZ4BlockInputStream lz4Input = new LZ4BlockInputStream (new ByteArrayInputStream (binaryData ))) {
110+ try (LZ4BlockInputStream lz4Input = LZ4BlockInputStream . newBuilder (). build (new ByteArrayInputStream (binaryData ))) {
111111 return DbFileSources .Data .parseFrom (lz4Input );
112112 } catch (InvalidProtocolBufferException e ) {
113113 if (SIZE_LIMIT_EXCEEDED_EXCEPTION_MESSAGE .equals (e .getMessage ())) {
@@ -118,7 +118,7 @@ private static DbFileSources.Data decodeRegularSourceData(byte[] binaryData) thr
118118 }
119119
120120 private static DbFileSources .Data decodeHugeSourceData (byte [] binaryData ) throws IOException {
121- try (LZ4BlockInputStream lz4Input = new LZ4BlockInputStream (new ByteArrayInputStream (binaryData ))) {
121+ try (LZ4BlockInputStream lz4Input = LZ4BlockInputStream . newBuilder (). build (new ByteArrayInputStream (binaryData ))) {
122122 CodedInputStream input = CodedInputStream .newInstance (lz4Input );
123123 input .setSizeLimit (Integer .MAX_VALUE );
124124 return DbFileSources .Data .parseFrom (input );
You can’t perform that action at this time.
0 commit comments