Skip to content

Commit e5951d4

Browse files
Enable nohttp check during the build (netty#10708)
Motivation: HTTP is a plaintext protocol which means that someone may be able to eavesdrop the data. To prevent this, HTTPS should be used whenever possible. However, maintaining using https:// in all URLs may be difficult. The nohttp tool can help here. The tool scans all the files in a repository and reports where http:// is used. Modifications: - Added nohttp (via checkstyle) into the build process. - Suppressed findings for the websites that don't support HTTPS or that are not reachable Result: - Prevent using HTTP in the future. - Encourage users to use HTTPS when they follow the links they found in the code.
1 parent 24e6f37 commit e5951d4

File tree

2,758 files changed

+3275
-3169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,758 files changed

+3275
-3169
lines changed

LICENSE.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Apache License
33
Version 2.0, January 2004
4-
http://www.apache.org/licenses/
4+
https://www.apache.org/licenses/
55

66
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
77

@@ -193,7 +193,7 @@
193193
you may not use this file except in compliance with the License.
194194
You may obtain a copy of the License at
195195

196-
http://www.apache.org/licenses/LICENSE-2.0
196+
https://www.apache.org/licenses/LICENSE-2.0
197197

198198
Unless required by applicable law or agreed to in writing, software
199199
distributed under the License is distributed on an "AS IS" BASIS,

NOTICE.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Netty Project licenses this file to you under the Apache License,
1212
version 2.0 (the "License"); you may not use this file except in compliance
1313
with the License. You may obtain a copy of the License at:
1414

15-
http://www.apache.org/licenses/LICENSE-2.0
15+
https://www.apache.org/licenses/LICENSE-2.0
1616

1717
Unless required by applicable law or agreed to in writing, software
1818
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@@ -56,7 +56,7 @@ facade for Java, which can be obtained at:
5656
* LICENSE:
5757
* license/LICENSE.slf4j.txt (MIT License)
5858
* HOMEPAGE:
59-
* http://www.slf4j.org/
59+
* https://www.slf4j.org/
6060

6161
This product contains a modified portion of 'Apache Harmony', an open source
6262
Java SE, which can be obtained at:
@@ -66,7 +66,7 @@ Java SE, which can be obtained at:
6666
* LICENSE:
6767
* license/LICENSE.harmony.txt (Apache License 2.0)
6868
* HOMEPAGE:
69-
* http://archive.apache.org/dist/harmony/
69+
* https://archive.apache.org/dist/harmony/
7070

7171
This product contains a modified portion of 'jbzip2', a Java bzip2 compression
7272
and decompression library written by Matthew J. Francis. It can be obtained at:
@@ -148,7 +148,7 @@ equivalent functionality. It can be obtained at:
148148
* LICENSE:
149149
* license/LICENSE.bouncycastle.txt (MIT License)
150150
* HOMEPAGE:
151-
* http://www.bouncycastle.org/
151+
* https://www.bouncycastle.org/
152152

153153
This product optionally depends on 'Snappy', a compression library produced
154154
by Google Inc, which can be obtained at:
@@ -180,15 +180,15 @@ framework, which can be obtained at:
180180
* LICENSE:
181181
* license/LICENSE.commons-logging.txt (Apache License 2.0)
182182
* HOMEPAGE:
183-
* http://commons.apache.org/logging/
183+
* https://commons.apache.org/logging/
184184

185185
This product optionally depends on 'Apache Log4J', a logging framework, which
186186
can be obtained at:
187187

188188
* LICENSE:
189189
* license/LICENSE.log4j.txt (Apache License 2.0)
190190
* HOMEPAGE:
191-
* http://logging.apache.org/log4j/
191+
* https://logging.apache.org/log4j/
192192

193193
This product optionally depends on 'Aalto XML', an ultra-high performance
194194
non-blocking XML processor, which can be obtained at:
@@ -245,4 +245,4 @@ This private header is also used by Apple's open source
245245
* LICENSE:
246246
* license/LICENSE.dnsinfo.txt (Apache License 2.0)
247247
* HOMEPAGE:
248-
* http://www.opensource.apple.com/source/configd/configd-453.19/dnsinfo/dnsinfo.h
248+
* https://www.opensource.apple.com/source/configd/configd-453.19/dnsinfo/dnsinfo.h

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ For the detailed information about building and developing Netty, please visit [
1515

1616
You require the following to build Netty:
1717

18-
* Latest stable [Oracle JDK 7](http://www.oracle.com/technetwork/java/)
19-
* Latest stable [Apache Maven](http://maven.apache.org/)
18+
* Latest stable [Oracle JDK 7](https://www.oracle.com/technetwork/java/)
19+
* Latest stable [Apache Maven](https://maven.apache.org/)
2020
* 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.
2121

2222
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.

all/pom.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
~ version 2.0 (the "License"); you may not use this file except in compliance
77
~ with the License. You may obtain a copy of the License at:
88
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~ https://www.apache.org/licenses/LICENSE-2.0
1010
~
1111
~ Unless required by applicable law or agreed to in writing, software
1212
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1313
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1414
~ License for the specific language governing permissions and limitations
1515
~ under the License.
1616
-->
17-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
17+
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
1818

1919
<modelVersion>4.0.0</modelVersion>
2020
<parent>
@@ -309,12 +309,12 @@
309309
<windowtitle>Netty API Reference (${project.version})</windowtitle>
310310
<detectJavaApiLink>false</detectJavaApiLink>
311311
<additionalparam>
312-
-link http://docs.oracle.com/javase/7/docs/api/
312+
-link https://docs.oracle.com/javase/7/docs/api/
313313
-link https://developers.google.com/protocol-buffers/docs/reference/java/
314-
-link http://docs.oracle.com/javaee/6/api/
315-
-link http://www.slf4j.org/apidocs/
314+
-link https://docs.oracle.com/javaee/6/api/
315+
-link https://www.slf4j.org/apidocs/
316316
-link https://commons.apache.org/proper/commons-logging/apidocs/
317-
-link http://logging.apache.org/log4j/1.2/apidocs/
317+
-link https://logging.apache.org/log4j/1.2/apidocs/
318318

319319
-group "Low-level data representation" io.netty.buffer*
320320
-group "Central interface for all I/O operations" io.netty.channel*

bom/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
~ version 2.0 (the "License"); you may not use this file except in compliance
77
~ with the License. You may obtain a copy of the License at:
88
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~ https://www.apache.org/licenses/LICENSE-2.0
1010
~
1111
~ Unless required by applicable law or agreed to in writing, software
1212
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1313
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1414
~ License for the specific language governing permissions and limitations
1515
~ under the License.
1616
-->
17-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
17+
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
1818
<modelVersion>4.0.0</modelVersion>
1919
<parent>
2020
<groupId>org.sonatype.oss</groupId>
@@ -40,7 +40,7 @@
4040
<licenses>
4141
<license>
4242
<name>Apache License, Version 2.0</name>
43-
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
43+
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
4444
</license>
4545
</licenses>
4646
<inceptionYear>2008</inceptionYear>

buffer/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
~ version 2.0 (the "License"); you may not use this file except in compliance
77
~ with the License. You may obtain a copy of the License at:
88
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~ https://www.apache.org/licenses/LICENSE-2.0
1010
~
1111
~ Unless required by applicable law or agreed to in writing, software
1212
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1313
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1414
~ License for the specific language governing permissions and limitations
1515
~ under the License.
1616
-->
17-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
17+
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
1818

1919
<modelVersion>4.0.0</modelVersion>
2020
<parent>

buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AbstractByteBufAllocator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AbstractDerivedByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AbstractPooledDerivedByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AbstractReferenceCountedByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AbstractUnpooledSlicedByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AbstractUnsafeSwappedByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareCompositeByteBuf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBuf.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@@ -43,7 +43,7 @@
4343
* <h3>Random Access Indexing</h3>
4444
*
4545
* Just like an ordinary primitive byte array, {@link ByteBuf} uses
46-
* <a href="http://en.wikipedia.org/wiki/Zero-based_numbering">zero-based indexing</a>.
46+
* <a href="https://en.wikipedia.org/wiki/Zero-based_numbering">zero-based indexing</a>.
4747
* It means the index of the first byte is always {@code 0} and the index of the last byte is
4848
* always {@link #capacity() capacity - 1}. For example, to iterate all bytes of a buffer, you
4949
* can do the following, regardless of its internal implementation:
@@ -274,7 +274,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf> {
274274
public abstract ByteBufAllocator alloc();
275275

276276
/**
277-
* Returns the <a href="http://en.wikipedia.org/wiki/Endianness">endianness</a>
277+
* Returns the <a href="https://en.wikipedia.org/wiki/Endianness">endianness</a>
278278
* of this buffer.
279279
*
280280
* @deprecated use the Little Endian accessors, e.g. {@code getShortLE}, {@code getIntLE}

buffer/src/main/java/io/netty/buffer/ByteBufAllocator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBufAllocatorMetric.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBufAllocatorMetricProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBufHolder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBufInputStream.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBufOutputStream.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

buffer/src/main/java/io/netty/buffer/ByteBufProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 2.0 (the "License"); you may not use this file except in compliance
66
* with the License. You may obtain a copy of the License at:
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

0 commit comments

Comments
 (0)