Browse Source

Pull request #6797: REPORT-78067 三方组件批量升级

Merge in CORE/base-third from ~YUAN.WANG/base-third:feature/x to feature/x

* commit '1d56d7dff4ac96567d57a38d2a3d9a0fc4b1d88e':
  REPORT-78067 三方组件批量升级
feature/x
Yuan.Wang-王垣 2 years ago
parent
commit
0ba424b786
  1. 8
      fine-lz4/src/main/java/com/fr/third/net/jpountz/lz4/LZ4Factory.java

8
fine-lz4/src/main/java/com/fr/third/net/jpountz/lz4/LZ4Factory.java

@ -190,10 +190,10 @@ public final class LZ4Factory {
private LZ4Factory(String impl) throws ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InstantiationException, InvocationTargetException {
this.impl = impl;
fastCompressor = classInstance("net.jpountz.lz4.LZ4" + impl + "Compressor");
highCompressor = classInstance("net.jpountz.lz4.LZ4HC" + impl + "Compressor");
fastDecompressor = classInstance("net.jpountz.lz4.LZ4" + impl + "FastDecompressor");
safeDecompressor = classInstance("net.jpountz.lz4.LZ4" + impl + "SafeDecompressor");
fastCompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4" + impl + "Compressor");
highCompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4HC" + impl + "Compressor");
fastDecompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4" + impl + "FastDecompressor");
safeDecompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4" + impl + "SafeDecompressor");
Constructor<? extends LZ4Compressor> highConstructor = highCompressor.getClass().getDeclaredConstructor(int.class);
highCompressors[DEFAULT_COMPRESSION_LEVEL] = highCompressor;
for(int level = 1; level <= MAX_COMPRESSION_LEVEL; level++) {

Loading…
Cancel
Save