Skip to content

Commit ccfcfa9

Browse files
committed
style: prefer https:// links in favour of http://
See #4897
1 parent 11fce36 commit ccfcfa9

32 files changed

+45
-45
lines changed

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<li {% if include.active == 'docs' %} class="active" {% endif %}>
1919
<a href="{{ site.baseurl }}/docs/installation">Docs</a>
2020
</li>
21-
<li><a href="http://github.com/google/error-prone">GitHub</a></li>
21+
<li><a href="https://github.com/google/error-prone">GitHub</a></li>
2222
</ul>
2323
</div>
2424
</div>

bugpattern/BindingToUnqualifiedCommonType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bind(Integer.class).toInstance(80);
5252
To avoid confusion in these circumstances, please use a Qualifier annotation
5353
when binding simple value types.
5454

55-
[`@Qualifier`]: http://docs.oracle.com/javaee/6/api/javax/inject/Qualifier.html
55+
[`@Qualifier`]: https://docs.oracle.com/javaee/6/api/javax/inject/Qualifier.html
5656
[`@BindingAnnotation`]: https://github.com/google/guice/wiki/BindingAnnotations
5757

5858
## Suppression

bugpattern/DateFormatConstant.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ private static final DateFormat dateFormat =
4545

4646
```
4747

48-
[`DateFormat`]: http://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html
49-
[`ThreadLocal`]: http://docs.oracle.com/javase/8/docs/api/java/lang/ThreadLocal.html
48+
[`DateFormat`]: https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html
49+
[`ThreadLocal`]: https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadLocal.html
5050
[`DateTimeFormatter`]: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
5151
[style]: https://google.github.io/styleguide/javaguide.html#s5.2.4-constant-names
5252

bugpattern/DefaultCharset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A [`Charset`][charset] is a mapping between sequences of
2020
when encoding characters into bytes and decoding bytes into characters.
2121

2222
[charset]: https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html
23-
[codeunit]: http://unicode.org/glossary/#code_unit
23+
[codeunit]: https://unicode.org/glossary/#code_unit
2424

2525
Using APIs that rely on the JVM's default Charset under the hood is dangerous.
2626
The default charset can vary from machine to machine or JVM to JVM. This can
@@ -35,7 +35,7 @@ If you need stable encoding/decoding, you must specify an explicit charset. The
3535

3636
When in doubt, use [UTF-8].
3737

38-
[UTF-8]: http://www.utf8everywhere.org/
38+
[UTF-8]: https://www.utf8everywhere.org/
3939

4040
## Suppression
4141
Suppress false positives by adding the suppression annotation `@SuppressWarnings("DefaultCharset")` to the enclosing element.

bugpattern/DoubleBraceInitialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Luckily, there are more readable and more performant alternatives in the factory
3232
methods and builders for `ImmutableList`, `ImmutableSet`, and `ImmutableMap`.
3333

3434
The `List.of`, `Set.of`, and `Map.of` static factories
35-
[added in Java 9](http://openjdk.java.net/jeps/269) are also a good choice.
35+
[added in Java 9](https://openjdk.java.net/jeps/269) are also a good choice.
3636

3737
That is, prefer this:
3838

bugpattern/DoubleCheckedLocking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ thread-safe.
1919
If the field is not volatile, the compiler may re-order the code in the
2020
accessor. For more information, see:
2121

22-
* http://jeremymanson.blogspot.com/2008/05/double-checked-locking.html
23-
* http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
22+
* https://jeremymanson.blogspot.com/2008/05/double-checked-locking.html
23+
* https://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
2424
* Java Concurrency in Practice, §16.2.4
2525
* [Effective Java 3rd Edition §83][ej3e-83]
2626

@@ -98,7 +98,7 @@ static Object get() {
9898
## Double-checked locking and immutability
9999

100100
If the object being initialized with double-checked locking is
101-
[immutable](http://jeremymanson.blogspot.com/2008/04/immutability-in-java.html),
101+
[immutable](https://jeremymanson.blogspot.com/2008/04/immutability-in-java.html),
102102
then it is safe for the field to be non-volatile. *However*, the use of volatile
103103
is still encouraged because it is almost free on x86 and makes the code more
104104
obviously correct.

bugpattern/EqualsIncompatibleType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ if (set.contains(hi)) {
161161
}
162162
```
163163

164-
[equalstester]: http://static.javadoc.io/com.google.guava/guava-testlib/19.0/com/google/common/testing/EqualsTester.html
164+
[equalstester]: https://static.javadoc.io/com.google.guava/guava-testlib/19.0/com/google/common/testing/EqualsTester.html
165165
[objeq]: https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#equals(java.lang.Object)
166166
[av]: https://github.com/google/auto/blob/master/value/userguide/index.md
167167

bugpattern/ExpectedExceptionChecker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void testRemoveFails() {
5050
}
5151
```
5252

53-
[`ExpectedException`]: http://junit.org/junit4/javadoc/latest/org/junit/rules/ExpectedException.html
53+
[`ExpectedException`]: https://junit.org/junit4/javadoc/latest/org/junit/rules/ExpectedException.html
5454

5555
## Suppression
5656
Suppress false positives by adding the suppression annotation `@SuppressWarnings("ExpectedExceptionChecker")` to the enclosing element.

bugpattern/IdentityHashMapUsage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To make changes, edit the @BugPattern annotation or the explanation in docs/bugp
1414

1515
## The problem
1616
`java.util.IdentityHashMap` uses reference equality to compare keys. This is
17-
[in violation of the contract of `java.util.Map`](http://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/IdentityHashMap.html),
17+
[in violation of the contract of `java.util.Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/IdentityHashMap.html),
1818
which states that object equality (the keys' `equals` methods) should be used
1919
for key comparison. This peculiarity can lead to confusion and subtle bugs,
2020
especially when the two types of maps are used together. This check attempts to

bugpattern/InterruptedExceptionSwallowed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ handled properly, however `try` blocks that catch `Exception` or `Throwable` (or
2222
methods that `throws` either type) make it difficult to recognize that
2323
interruption may occur.
2424

25-
For advice on how to handle `InterruptedException`, see http://web.archive.org/web/20201025132525/https://www.ibm.com/developerworks/library/j-jtp05236/index.html
25+
For advice on how to handle `InterruptedException`, see https://web.archive.org/web/20201025132525/https://www.ibm.com/developerworks/library/j-jtp05236/index.html
2626

2727
## Suppression
2828

0 commit comments

Comments
 (0)