This commit is contained in:
Andrea Cavalli 2021-09-04 02:18:49 +02:00
parent 0a8709ac3f
commit 033d4995f8
4 changed files with 18 additions and 15 deletions

View File

@ -75,13 +75,16 @@
* type. * type.
* <pre> * <pre>
* // The composite type is compatible with the component type. * // 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 * // Therefore, you can even create a composite by mixing a composite and an
* // ordinary buffer. * // 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 * // 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 * // even if the region you want to access spans over multiple components. The
* // unsigned integer being read here is located across body and footer. * // unsigned integer being read here is located across body and footer.

View File

@ -29,7 +29,7 @@ public class SearchProcessorTest {
private enum Algorithm { private enum Algorithm {
KNUTH_MORRIS_PRATT { KNUTH_MORRIS_PRATT {
@Override @Override
SearchProcessorFactory newFactory(byte[] needle) { SearchProcessorFactory newFactory(byte[] needle) {
return AbstractSearchProcessorFactory.newKmpSearchProcessorFactory(needle); return AbstractSearchProcessorFactory.newKmpSearchProcessorFactory(needle);
} }
}, },

View File

@ -39,11 +39,11 @@ public class NativeLibraryLoaderTest {
NativeLibraryLoader.load(UUID.randomUUID().toString(), NativeLibraryLoaderTest.class.getClassLoader()); NativeLibraryLoader.load(UUID.randomUUID().toString(), NativeLibraryLoaderTest.class.getClassLoader());
fail(); fail();
} catch (UnsatisfiedLinkError error) { } catch (UnsatisfiedLinkError error) {
assertTrue(error.getCause() instanceof FileNotFoundException assertTrue(error.getCause() instanceof FileNotFoundException
|| error.getCause() == null); || error.getCause() == null);
if (error.getCause() != null) { if (error.getCause() != null) {
verifySuppressedException(error, UnsatisfiedLinkError.class); verifySuppressedException(error, UnsatisfiedLinkError.class);
} }
} }
} }
@ -53,11 +53,11 @@ public class NativeLibraryLoaderTest {
NativeLibraryLoader.load(UUID.randomUUID().toString(), null); NativeLibraryLoader.load(UUID.randomUUID().toString(), null);
fail(); fail();
} catch (UnsatisfiedLinkError error) { } catch (UnsatisfiedLinkError error) {
assertTrue(error.getCause() instanceof FileNotFoundException assertTrue(error.getCause() instanceof FileNotFoundException
|| error.getCause() == null); || error.getCause() == null);
if (error.getCause() != null) { if (error.getCause() != null) {
verifySuppressedException(error, ClassNotFoundException.class); verifySuppressedException(error, ClassNotFoundException.class);
} }
} }
} }

View File

@ -980,7 +980,7 @@
</requireMavenVersion> </requireMavenVersion>
<requireProperty> <requireProperty>
<regexMessage> <regexMessage>
x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used. x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
</regexMessage> </regexMessage>
<property>os.detected.arch</property> <property>os.detected.arch</property>
<regex>^(x86_64|aarch_64|ppcle_64|s390_64)$</regex> <regex>^(x86_64|aarch_64|ppcle_64|s390_64)$</regex>