Bugfixes
This commit is contained in:
parent
0a8709ac3f
commit
033d4995f8
|
@ -75,13 +75,16 @@
|
|||
* type.
|
||||
* <pre>
|
||||
* // The composite type is compatible with the component type.
|
||||
* {@link io.netty5.buffer.ByteBuf} message = {@link io.netty5.buffer.Unpooled}.wrappedBuffer(header, body);
|
||||
* {@link io.netty5.buffer.ByteBuf} message
|
||||
* = {@link io.netty5.buffer.Unpooled}.wrappedBuffer(header, body);
|
||||
*
|
||||
* // Therefore, you can even create a composite by mixing a composite and an
|
||||
* // ordinary buffer.
|
||||
* {@link io.netty5.buffer.ByteBuf} messageWithFooter = {@link io.netty5.buffer.Unpooled}.wrappedBuffer(message, footer);
|
||||
* {@link io.netty5.buffer.ByteBuf} messageWithFooter
|
||||
* = {@link io.netty5.buffer.Unpooled}.wrappedBuffer(message, footer);
|
||||
*
|
||||
* // Because the composite is still a {@link io.netty5.buffer.ByteBuf}, you can access its content
|
||||
* // Because the composite is still
|
||||
* a {@link io.netty5.buffer.ByteBuf}, you can access its content
|
||||
* // easily, and the accessor method will behave just like it's a single buffer
|
||||
* // even if the region you want to access spans over multiple components. The
|
||||
* // unsigned integer being read here is located across body and footer.
|
||||
|
|
|
@ -29,7 +29,7 @@ public class SearchProcessorTest {
|
|||
private enum Algorithm {
|
||||
KNUTH_MORRIS_PRATT {
|
||||
@Override
|
||||
SearchProcessorFactory newFactory(byte[] needle) {
|
||||
SearchProcessorFactory newFactory(byte[] needle) {
|
||||
return AbstractSearchProcessorFactory.newKmpSearchProcessorFactory(needle);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -39,11 +39,11 @@ public class NativeLibraryLoaderTest {
|
|||
NativeLibraryLoader.load(UUID.randomUUID().toString(), NativeLibraryLoaderTest.class.getClassLoader());
|
||||
fail();
|
||||
} catch (UnsatisfiedLinkError error) {
|
||||
assertTrue(error.getCause() instanceof FileNotFoundException
|
||||
|| error.getCause() == null);
|
||||
if (error.getCause() != null) {
|
||||
verifySuppressedException(error, UnsatisfiedLinkError.class);
|
||||
}
|
||||
assertTrue(error.getCause() instanceof FileNotFoundException
|
||||
|| error.getCause() == null);
|
||||
if (error.getCause() != null) {
|
||||
verifySuppressedException(error, UnsatisfiedLinkError.class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,11 +53,11 @@ public class NativeLibraryLoaderTest {
|
|||
NativeLibraryLoader.load(UUID.randomUUID().toString(), null);
|
||||
fail();
|
||||
} catch (UnsatisfiedLinkError error) {
|
||||
assertTrue(error.getCause() instanceof FileNotFoundException
|
||||
|| error.getCause() == null);
|
||||
if (error.getCause() != null) {
|
||||
verifySuppressedException(error, ClassNotFoundException.class);
|
||||
}
|
||||
assertTrue(error.getCause() instanceof FileNotFoundException
|
||||
|| error.getCause() == null);
|
||||
if (error.getCause() != null) {
|
||||
verifySuppressedException(error, ClassNotFoundException.class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -980,7 +980,7 @@
|
|||
</requireMavenVersion>
|
||||
<requireProperty>
|
||||
<regexMessage>
|
||||
x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
|
||||
x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
|
||||
</regexMessage>
|
||||
<property>os.detected.arch</property>
|
||||
<regex>^(x86_64|aarch_64|ppcle_64|s390_64)$</regex>
|
||||
|
|
Loading…
Reference in New Issue