Merge branch 'dev/1.1.0' into further-native-tweaks

# Conflicts:
#	native/compile-linux.sh
This commit is contained in:
Andrew Steinborn
2020-10-27 01:30:42 -04:00
42 changed files with 797 additions and 243 deletions

View File

@@ -1,9 +1,11 @@
plugins {
id 'java-library'
id 'checkstyle'
id 'maven-publish'
}
apply from: '../gradle/checkstyle.gradle'
apply from: '../gradle/publish.gradle'
dependencies {
implementation "com.google.guava:guava:${guavaVersion}"
@@ -12,4 +14,12 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

View File

@@ -27,8 +27,6 @@ public class LibdeflateVelocityCompressor implements VelocityCompressor {
public void inflate(ByteBuf source, ByteBuf destination, int uncompressedSize)
throws DataFormatException {
ensureNotDisposed();
source.memoryAddress();
destination.memoryAddress();
// libdeflate recommends we work with a known uncompressed size - so we work strictly within
// those parameters. If the uncompressed size doesn't match the compressed size, then we will