From 033d4995f8798ddab00eb88927af7eaaa8dbc3b5 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 4 Sep 2021 02:18:49 +0200 Subject: [PATCH] Bugfixes --- .../java/io/netty5/buffer/package-info.java | 9 ++++++--- .../buffer/search/SearchProcessorTest.java | 2 +- .../internal/NativeLibraryLoaderTest.java | 20 +++++++++---------- pom.xml | 2 +- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/buffer/src/main/java/io/netty5/buffer/package-info.java b/buffer/src/main/java/io/netty5/buffer/package-info.java index d792e05870..720ed776b5 100644 --- a/buffer/src/main/java/io/netty5/buffer/package-info.java +++ b/buffer/src/main/java/io/netty5/buffer/package-info.java @@ -75,13 +75,16 @@ * 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
  * // 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.
diff --git a/buffer/src/test/java/io/netty5/buffer/search/SearchProcessorTest.java b/buffer/src/test/java/io/netty5/buffer/search/SearchProcessorTest.java
index b749351cc2..3a6fd5d305 100644
--- a/buffer/src/test/java/io/netty5/buffer/search/SearchProcessorTest.java
+++ b/buffer/src/test/java/io/netty5/buffer/search/SearchProcessorTest.java
@@ -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);
             }
         },
diff --git a/common/src/test/java/io/netty5/util/internal/NativeLibraryLoaderTest.java b/common/src/test/java/io/netty5/util/internal/NativeLibraryLoaderTest.java
index c94c8841e3..d8db2c99b7 100644
--- a/common/src/test/java/io/netty5/util/internal/NativeLibraryLoaderTest.java
+++ b/common/src/test/java/io/netty5/util/internal/NativeLibraryLoaderTest.java
@@ -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);
+                    }
         }
     }
 
diff --git a/pom.xml b/pom.xml
index 4d8662eb07..7fe7e19672 100644
--- a/pom.xml
+++ b/pom.xml
@@ -980,7 +980,7 @@
                 
                 
                   
-		     x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
+             x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
                   
                   os.detected.arch
                   ^(x86_64|aarch_64|ppcle_64|s390_64)$