Skip to content

Commit

Permalink
Fix javadoc formatting for ImmutableList.copyOf(Collection).
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 534433508
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed May 23, 2023
1 parent 7b6dd3e commit 7c473d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
*
* <p>Note that if {@code list} is a {@code List<String>}, then {@code ImmutableList.copyOf(list)}
* returns an {@code ImmutableList<String>} containing each of the strings in {@code list}, while
* ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one element
* (the given list itself).
* {@code ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one
* element (the given list itself).
*
* <p>This method is safe to use even when {@code elements} is a synchronized or concurrent
* collection that is currently being modified by another thread.
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/collect/ImmutableList.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
*
* <p>Note that if {@code list} is a {@code List<String>}, then {@code ImmutableList.copyOf(list)}
* returns an {@code ImmutableList<String>} containing each of the strings in {@code list}, while
* ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one element
* (the given list itself).
* {@code ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one
* element (the given list itself).
*
* <p>This method is safe to use even when {@code elements} is a synchronized or concurrent
* collection that is currently being modified by another thread.
Expand Down

0 comments on commit 7c473d8

Please sign in to comment.