From c0f9364870239b3943a61e41329d88f5d8790a38 Mon Sep 17 00:00:00 2001
From: jingene
Date: Wed, 10 Jul 2019 04:09:42 +0900
Subject: [PATCH] Change the netty.io homepage scheme(http -> https) (#9344)
Motivation:
Netty homepage(netty.io) serves both "http" and "https".
It's recommended to use https than http.
Modification:
I changed from "http://netty.io" to "https://netty.io"
Result:
No effects.
---
.github/CONTRIBUTING.md | 2 +-
CONTRIBUTING.md | 2 +-
NOTICE.txt | 2 +-
README.md | 10 ++++-----
bom/pom.xml | 8 +++----
.../codec/http/QueryStringDecoder.java | 2 +-
.../WebSocketServerHandshaker13.java | 4 ++--
.../codec/http/websocketx/package-info.java | 10 ++++-----
.../handler/codec/http2/Http2FrameCodec.java | 2 +-
.../codec/http2/Http2MultiplexCodec.java | 2 +-
.../codec/http2/Http2MultiplexHandler.java | 2 +-
.../handler/codec/xml/XmlDecoderTest.java | 22 +++++++++----------
.../io/netty/handler/codec/xml/sample-04.xml | 8 +++----
.../io/netty/util/ResourceLeakDetector.java | 4 ++--
.../java/io/netty/handler/ssl/OpenSsl.java | 12 +++++-----
.../java/io/netty/handler/ssl/PemReader.java | 2 +-
microbench/README.md | 2 +-
pom.xml | 8 +++----
transport-native-epoll/README.md | 2 +-
.../java/io/netty/channel/epoll/Epoll.java | 18 ++++++++-------
.../java/io/netty/channel/kqueue/KQueue.java | 16 ++++++++------
21 files changed, 72 insertions(+), 68 deletions(-)
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 81c2ceabb93a..8ca9413821a6 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1 +1 @@
-Please review the [guidelines for contributing](http://netty.io/wiki/developer-guide.html) for this repository.
+Please review the [guidelines for contributing](https://netty.io/wiki/developer-guide.html) for this repository.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1a8b4d84cd5c..a18232f285ed 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -42,5 +42,5 @@ My system has IPv6 disabled.
## How to contribute your work
-Before submitting a pull request or push a commit, please read [our developer guide](http://netty.io/wiki/developer-guide.html).
+Before submitting a pull request or push a commit, please read [our developer guide](https://netty.io/wiki/developer-guide.html).
diff --git a/NOTICE.txt b/NOTICE.txt
index a07394afb920..f9888e61e13f 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -4,7 +4,7 @@
Please visit the Netty web site for more information:
- * http://netty.io/
+ * https://netty.io/
Copyright 2014 The Netty Project
diff --git a/README.md b/README.md
index 5c4c4b5afd89..6b557b1c3c75 100644
--- a/README.md
+++ b/README.md
@@ -4,20 +4,20 @@ Netty is an asynchronous event-driven network application framework for rapid de
## Links
-* [Web Site](http://netty.io/)
-* [Downloads](http://netty.io/downloads.html)
-* [Documentation](http://netty.io/wiki/)
+* [Web Site](https://netty.io/)
+* [Downloads](https://netty.io/downloads.html)
+* [Documentation](https://netty.io/wiki/)
* [@netty_project](https://twitter.com/netty_project)
## How to build
-For the detailed information about building and developing Netty, please visit [the developer guide](http://netty.io/wiki/developer-guide.html). This page only gives very basic information.
+For the detailed information about building and developing Netty, please visit [the developer guide](https://netty.io/wiki/developer-guide.html). This page only gives very basic information.
You require the following to build Netty:
* Latest stable [Oracle JDK 7](http://www.oracle.com/technetwork/java/)
* Latest stable [Apache Maven](http://maven.apache.org/)
-* If you are on Linux, you need [additional development packages](http://netty.io/wiki/native-transports.html) installed on your system, because you'll build the native transport.
+* If you are on Linux, you need [additional development packages](https://netty.io/wiki/native-transports.html) installed on your system, because you'll build the native transport.
Note that this is build-time requirement. JDK 5 (for 3.x) or 6 (for 4.0+) is enough to run your Netty-based application.
diff --git a/bom/pom.xml b/bom/pom.xml
index 659d3533b34e..64131bb0edf0 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,11 +30,11 @@
Netty/BOM
Netty (Bill of Materials)
- http://netty.io/
+ https://netty.io/
The Netty Project
- http://netty.io/
+ https://netty.io/
@@ -57,9 +57,9 @@
netty.io
The Netty Project Contributors
netty@googlegroups.com
- http://netty.io/
+ https://netty.io/
The Netty Project
- http://netty.io/
+ https://netty.io/
diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/QueryStringDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/QueryStringDecoder.java
index 7c631f31ce96..4df88e80a487 100644
--- a/codec-http/src/main/java/io/netty/handler/codec/http/QueryStringDecoder.java
+++ b/codec-http/src/main/java/io/netty/handler/codec/http/QueryStringDecoder.java
@@ -54,7 +54,7 @@
*
* HashDOS vulnerability fix
*
- * As a workaround to the HashDOS vulnerability, the decoder
+ * As a workaround to the HashDOS vulnerability, the decoder
* limits the maximum number of decoded key-value parameter pairs, up to {@literal 1024} by
* default, and you can configure it when you construct the decoder by passing an additional
* integer parameter.
diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker13.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker13.java
index af139c7616b1..79d7b53ebbbb 100644
--- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker13.java
+++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker13.java
@@ -28,8 +28,8 @@
/**
*
- * Performs server side opening and closing handshakes for RFC 6455
- * (originally web socket specification draft-ietf-hybi-thewebsocketprotocol-17).
+ * Performs server side opening and closing handshakes for RFC 6455
+ * (originally web socket specification draft-ietf-hybi-thewebsocketprotocol-17).
*
*/
public class WebSocketServerHandshaker13 extends WebSocketServerHandshaker {
diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/package-info.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/package-info.java
index 1425a824d6f2..824acb3d5dfd 100644
--- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/package-info.java
+++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/package-info.java
@@ -21,11 +21,11 @@
* This package supports different web socket specification versions (hence the X suffix).
* The specification current supported are:
*
*
diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java
index 6767f7ea2e1a..fe4fdc988d0c 100644
--- a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java
+++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java
@@ -136,7 +136,7 @@
* reference counted objects (e.g. {@link ByteBuf}s). The frame codec will call {@link ReferenceCounted#retain()} before
* propagating a reference counted object through the pipeline, and thus an application handler needs to release such
* an object after having consumed it. For more information on reference counting take a look at
- * http://netty.io/wiki/reference-counted-objects.html
+ * https://netty.io/wiki/reference-counted-objects.html
*
* HTTP Upgrade
*
diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java
index daa6f60d8d20..07adf6a622d0 100644
--- a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java
+++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java
@@ -61,7 +61,7 @@
* reference counted objects (e.g. {@link ByteBuf}s). The multiplex codec will call {@link ReferenceCounted#retain()}
* before propagating a reference counted object through the pipeline, and thus an application handler needs to release
* such an object after having consumed it. For more information on reference counting take a look at
- * http://netty.io/wiki/reference-counted-objects.html
+ * https://netty.io/wiki/reference-counted-objects.html
*
* Channel Events
*
diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java
index 1c920b2ed379..69294ada6c39 100644
--- a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java
+++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java
@@ -64,7 +64,7 @@
* reference counted objects (e.g. {@link ByteBuf}s). The multiplex codec will call {@link ReferenceCounted#retain()}
* before propagating a reference counted object through the pipeline, and thus an application handler needs to release
* such an object after having consumed it. For more information on reference counting take a look at
- * http://netty.io/wiki/reference-counted-objects.html
+ * https://netty.io/wiki/reference-counted-objects.html
*
* Channel Events
*
diff --git a/codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java b/codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java
index 1d623d605bbb..500de1d63246 100644
--- a/codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java
+++ b/codec-xml/src/test/java/io/netty/handler/codec/xml/XmlDecoderTest.java
@@ -37,12 +37,12 @@ public class XmlDecoderTest {
"" +
"" +
"" +
- "" +
+ "" +
"±1\n" +
"Alba ]]>" +
- " " +
+ " " +
"100";
private static final String XML3 = "";
@@ -99,13 +99,13 @@ public void shouldDecodeRequestWithSimpleXml() {
assertThat(((XmlElementStart) temp).attributes().size(), is(0));
assertThat(((XmlElementStart) temp).namespaces().size(), is(1));
assertThat(((XmlElementStart) temp).namespaces().get(0).prefix(), is("nettya"));
- assertThat(((XmlElementStart) temp).namespaces().get(0).uri(), is("http://netty.io/netty/a"));
+ assertThat(((XmlElementStart) temp).namespaces().get(0).uri(), is("https://netty.io/netty/a"));
temp = channel.readInbound();
assertThat(temp, instanceOf(XmlElementStart.class));
assertThat(((XmlElementStart) temp).name(), is("id"));
assertThat(((XmlElementStart) temp).prefix(), is("nettya"));
- assertThat(((XmlElementStart) temp).namespace(), is("http://netty.io/netty/a"));
+ assertThat(((XmlElementStart) temp).namespace(), is("https://netty.io/netty/a"));
assertThat(((XmlElementStart) temp).attributes().size(), is(0));
assertThat(((XmlElementStart) temp).namespaces().size(), is(0));
@@ -122,7 +122,7 @@ public void shouldDecodeRequestWithSimpleXml() {
assertThat(temp, instanceOf(XmlElementEnd.class));
assertThat(((XmlElementEnd) temp).name(), is("id"));
assertThat(((XmlElementEnd) temp).prefix(), is("nettya"));
- assertThat(((XmlElementEnd) temp).namespace(), is("http://netty.io/netty/a"));
+ assertThat(((XmlElementEnd) temp).namespace(), is("https://netty.io/netty/a"));
temp = channel.readInbound();
assertThat(temp, instanceOf(XmlCharacters.class));
@@ -171,15 +171,15 @@ public void shouldDecodeRequestWithSimpleXml() {
assertThat(temp, instanceOf(XmlElementStart.class));
assertThat(((XmlElementStart) temp).name(), is("salary"));
assertThat(((XmlElementStart) temp).prefix(), is("nettyb"));
- assertThat(((XmlElementStart) temp).namespace(), is("http://netty.io/netty/b"));
+ assertThat(((XmlElementStart) temp).namespace(), is("https://netty.io/netty/b"));
assertThat(((XmlElementStart) temp).attributes().size(), is(1));
assertThat(((XmlElementStart) temp).attributes().get(0).name(), is("period"));
assertThat(((XmlElementStart) temp).attributes().get(0).value(), is("weekly"));
assertThat(((XmlElementStart) temp).attributes().get(0).prefix(), is("nettyb"));
- assertThat(((XmlElementStart) temp).attributes().get(0).namespace(), is("http://netty.io/netty/b"));
+ assertThat(((XmlElementStart) temp).attributes().get(0).namespace(), is("https://netty.io/netty/b"));
assertThat(((XmlElementStart) temp).namespaces().size(), is(1));
assertThat(((XmlElementStart) temp).namespaces().get(0).prefix(), is("nettyb"));
- assertThat(((XmlElementStart) temp).namespaces().get(0).uri(), is("http://netty.io/netty/b"));
+ assertThat(((XmlElementStart) temp).namespaces().get(0).uri(), is("https://netty.io/netty/b"));
temp = channel.readInbound();
assertThat(temp, instanceOf(XmlCharacters.class));
@@ -189,10 +189,10 @@ public void shouldDecodeRequestWithSimpleXml() {
assertThat(temp, instanceOf(XmlElementEnd.class));
assertThat(((XmlElementEnd) temp).name(), is("salary"));
assertThat(((XmlElementEnd) temp).prefix(), is("nettyb"));
- assertThat(((XmlElementEnd) temp).namespace(), is("http://netty.io/netty/b"));
+ assertThat(((XmlElementEnd) temp).namespace(), is("https://netty.io/netty/b"));
assertThat(((XmlElementEnd) temp).namespaces().size(), is(1));
assertThat(((XmlElementEnd) temp).namespaces().get(0).prefix(), is("nettyb"));
- assertThat(((XmlElementEnd) temp).namespaces().get(0).uri(), is("http://netty.io/netty/b"));
+ assertThat(((XmlElementEnd) temp).namespaces().get(0).uri(), is("https://netty.io/netty/b"));
temp = channel.readInbound();
assertThat(temp, instanceOf(XmlElementStart.class));
@@ -216,7 +216,7 @@ public void shouldDecodeRequestWithSimpleXml() {
assertThat(((XmlElementEnd) temp).namespace(), is(""));
assertThat(((XmlElementEnd) temp).namespaces().size(), is(1));
assertThat(((XmlElementEnd) temp).namespaces().get(0).prefix(), is("nettya"));
- assertThat(((XmlElementEnd) temp).namespaces().get(0).uri(), is("http://netty.io/netty/a"));
+ assertThat(((XmlElementEnd) temp).namespaces().get(0).uri(), is("https://netty.io/netty/a"));
temp = channel.readInbound();
assertThat(temp, nullValue());
diff --git a/codec/src/test/resources/io/netty/handler/codec/xml/sample-04.xml b/codec/src/test/resources/io/netty/handler/codec/xml/sample-04.xml
index 8f50d300e743..4550d319a4db 100644
--- a/codec/src/test/resources/io/netty/handler/codec/xml/sample-04.xml
+++ b/codec/src/test/resources/io/netty/handler/codec/xml/sample-04.xml
@@ -29,7 +29,7 @@
4.0.14.Final-SNAPSHOT
Netty
- http://netty.io/
+ https://netty.io/
Netty is an asynchronous event-driven network application framework for
rapid development of maintainable high performance protocol servers and
@@ -38,7 +38,7 @@
The Netty Project
- http://netty.io/
+ https://netty.io/
@@ -61,9 +61,9 @@
netty.io
The Netty Project Contributors
netty@googlegroups.com
- http://netty.io/
+ https://netty.io/
The Netty Project
- http://netty.io/
+ https://netty.io/
diff --git a/common/src/main/java/io/netty/util/ResourceLeakDetector.java b/common/src/main/java/io/netty/util/ResourceLeakDetector.java
index e7fc140c67c6..386b14d3d956 100644
--- a/common/src/main/java/io/netty/util/ResourceLeakDetector.java
+++ b/common/src/main/java/io/netty/util/ResourceLeakDetector.java
@@ -316,7 +316,7 @@ private void reportLeak() {
protected void reportTracedLeak(String resourceType, String records) {
logger.error(
"LEAK: {}.release() was not called before it's garbage-collected. " +
- "See http://netty.io/wiki/reference-counted-objects.html for more information.{}",
+ "See https://netty.io/wiki/reference-counted-objects.html for more information.{}",
resourceType, records);
}
@@ -329,7 +329,7 @@ protected void reportUntracedLeak(String resourceType) {
"Enable advanced leak reporting to find out where the leak occurred. " +
"To enable advanced leak reporting, " +
"specify the JVM option '-D{}={}' or call {}.setLevel() " +
- "See http://netty.io/wiki/reference-counted-objects.html for more information.",
+ "See https://netty.io/wiki/reference-counted-objects.html for more information.",
resourceType, PROP_LEVEL, Level.ADVANCED.name().toLowerCase(), simpleClassName(this));
}
diff --git a/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java b/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java
index 78ee9d950869..3d404838071c 100644
--- a/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java
+++ b/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java
@@ -44,7 +44,7 @@
import static io.netty.handler.ssl.SslUtils.*;
/**
- * Tells if {@code netty-tcnative} and its OpenSSL support
+ * Tells if {@code netty-tcnative} and its OpenSSL support
* are available.
*/
public final class OpenSsl {
@@ -137,7 +137,7 @@ public final class OpenSsl {
"Failed to load netty-tcnative; " +
OpenSslEngine.class.getSimpleName() + " will be unavailable, unless the " +
"application has already loaded the symbols by some other means. " +
- "See http://netty.io/wiki/forked-tomcat-native.html for more information.", t);
+ "See https://netty.io/wiki/forked-tomcat-native.html for more information.", t);
}
try {
@@ -160,7 +160,7 @@ public final class OpenSsl {
logger.debug(
"Failed to initialize netty-tcnative; " +
OpenSslEngine.class.getSimpleName() + " will be unavailable. " +
- "See http://netty.io/wiki/forked-tomcat-native.html for more information.", t);
+ "See https://netty.io/wiki/forked-tomcat-native.html for more information.", t);
}
}
}
@@ -422,7 +422,7 @@ private static boolean doesSupportProtocol(int protocol, int opt) {
/**
* Returns {@code true} if and only if
- * {@code netty-tcnative} and its OpenSSL support
+ * {@code netty-tcnative} and its OpenSSL support
* are available.
*/
public static boolean isAvailable() {
@@ -461,7 +461,7 @@ public static String versionString() {
}
/**
- * Ensure that {@code netty-tcnative} and
+ * Ensure that {@code netty-tcnative} and
* its OpenSSL support are available.
*
* @throws UnsatisfiedLinkError if unavailable
@@ -475,7 +475,7 @@ public static void ensureAvailability() {
/**
* Returns the cause of unavailability of
- * {@code netty-tcnative} and its OpenSSL support.
+ * {@code netty-tcnative} and its OpenSSL support.
*
* @return the cause if unavailable. {@code null} if available.
*/
diff --git a/handler/src/main/java/io/netty/handler/ssl/PemReader.java b/handler/src/main/java/io/netty/handler/ssl/PemReader.java
index 4cddad9c912a..a3a351b06c02 100644
--- a/handler/src/main/java/io/netty/handler/ssl/PemReader.java
+++ b/handler/src/main/java/io/netty/handler/ssl/PemReader.java
@@ -126,7 +126,7 @@ static ByteBuf readPrivateKey(InputStream in) throws KeyException {
Matcher m = KEY_PATTERN.matcher(content);
if (!m.find()) {
throw new KeyException("could not find a PKCS #8 private key in input stream" +
- " (see http://netty.io/wiki/sslcontextbuilder-and-private-key.html for more information)");
+ " (see https://netty.io/wiki/sslcontextbuilder-and-private-key.html for more information)");
}
ByteBuf base64 = Unpooled.copiedBuffer(m.group(1), CharsetUtil.US_ASCII);
diff --git a/microbench/README.md b/microbench/README.md
index b109a14f8865..4505f1d9c968 100644
--- a/microbench/README.md
+++ b/microbench/README.md
@@ -1,4 +1,4 @@
## Microbenchmark tests
-See [our wiki page](http://netty.io/wiki/microbenchmarks.html).
+See [our wiki page](https://netty.io/wiki/microbenchmarks.html).
diff --git a/pom.xml b/pom.xml
index 281bb35aca30..52a92018d93b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
4.1.38.Final-SNAPSHOT
Netty
- http://netty.io/
+ https://netty.io/
Netty is an asynchronous event-driven network application framework for
rapid development of maintainable high performance protocol servers and
@@ -38,7 +38,7 @@
The Netty Project
- http://netty.io/
+ https://netty.io/
@@ -61,9 +61,9 @@
netty.io
The Netty Project Contributors
netty@googlegroups.com
- http://netty.io/
+ https://netty.io/
The Netty Project
- http://netty.io/
+ https://netty.io/
diff --git a/transport-native-epoll/README.md b/transport-native-epoll/README.md
index 43f97ee93335..ebc796029588 100644
--- a/transport-native-epoll/README.md
+++ b/transport-native-epoll/README.md
@@ -1,3 +1,3 @@
# Native transport for Linux
-See [our wiki page](http://netty.io/wiki/native-transports.html).
+See [our wiki page](https://netty.io/wiki/native-transports.html).
diff --git a/transport-native-epoll/src/main/java/io/netty/channel/epoll/Epoll.java b/transport-native-epoll/src/main/java/io/netty/channel/epoll/Epoll.java
index e4ecf42707b5..f2b0231dbb63 100644
--- a/transport-native-epoll/src/main/java/io/netty/channel/epoll/Epoll.java
+++ b/transport-native-epoll/src/main/java/io/netty/channel/epoll/Epoll.java
@@ -19,13 +19,14 @@
import io.netty.util.internal.SystemPropertyUtil;
/**
- * Tells if {@code netty-transport-native-epoll} is supported.
+ * Tells if {@code netty-transport-native-epoll} is
+ * supported.
*/
public final class Epoll {
private static final Throwable UNAVAILABILITY_CAUSE;
- static {
+ static {
Throwable cause = null;
if (SystemPropertyUtil.getBoolean("io.netty.transport.noNative", false)) {
@@ -61,15 +62,15 @@ public final class Epoll {
}
/**
- * Returns {@code true} if and only if the
- * {@code netty-transport-native-epoll} is available.
+ * Returns {@code true} if and only if the {@code
+ * netty-transport-native-epoll} is available.
*/
public static boolean isAvailable() {
return UNAVAILABILITY_CAUSE == null;
}
/**
- * Ensure that {@code netty-transport-native-epoll} is
+ * Ensure that {@code netty-transport-native-epoll} is
* available.
*
* @throws UnsatisfiedLinkError if unavailable
@@ -82,8 +83,8 @@ public static void ensureAvailability() {
}
/**
- * Returns the cause of unavailability of
- * {@code netty-transport-native-epoll}.
+ * Returns the cause of unavailability of
+ * {@code netty-transport-native-epoll}.
*
* @return the cause if unavailable. {@code null} if available.
*/
@@ -91,5 +92,6 @@ public static Throwable unavailabilityCause() {
return UNAVAILABILITY_CAUSE;
}
- private Epoll() { }
+ private Epoll() {
+ }
}
diff --git a/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueue.java b/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueue.java
index b5a772fab799..37ad6ea65425 100644
--- a/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueue.java
+++ b/transport-native-kqueue/src/main/java/io/netty/channel/kqueue/KQueue.java
@@ -25,7 +25,8 @@
@UnstableApi
public final class KQueue {
private static final Throwable UNAVAILABILITY_CAUSE;
- static {
+
+ static {
Throwable cause = null;
if (SystemPropertyUtil.getBoolean("io.netty.transport.noNative", false)) {
cause = new UnsupportedOperationException(
@@ -51,15 +52,15 @@ public final class KQueue {
}
/**
- * Returns {@code true} if and only if the
- * {@code netty-transport-native-kqueue} is available.
+ * Returns {@code true} if and only if the {@code
+ * netty-transport-native-kqueue} is available.
*/
public static boolean isAvailable() {
return UNAVAILABILITY_CAUSE == null;
}
/**
- * Ensure that {@code netty-transport-native-kqueue} is
+ * Ensure that {@code netty-transport-native-kqueue} is
* available.
*
* @throws UnsatisfiedLinkError if unavailable
@@ -72,8 +73,8 @@ public static void ensureAvailability() {
}
/**
- * Returns the cause of unavailability of
- * {@code netty-transport-native-kqueue}.
+ * Returns the cause of unavailability of {@code
+ * netty-transport-native-kqueue}.
*
* @return the cause if unavailable. {@code null} if available.
*/
@@ -81,5 +82,6 @@ public static Throwable unavailabilityCause() {
return UNAVAILABILITY_CAUSE;
}
- private KQueue() { }
+ private KQueue() {
+ }
}