Skip to content

Commit 89bb0eb

Browse files
committed
Unmodifiable, UnmodifiableView: wording
1 parent 135a1a9 commit 89bb0eb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

java8/src/main/java/org/jetbrains/annotations/Unmodifiable.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
/**
2121
* An annotation which marks a {@link java.util.Collection} or {@link java.util.Map} type
2222
* as unmodifiable. A collection or a map is unmodifiable if any mutator methods
23-
* throw exception or have no effect, and the objects stored as collection elements,
24-
* map keys, and map values are never changed.
23+
* (e.g. {@link java.util.Collection#add(Object)}) throw exception or have no effect,
24+
* and the object references stored as collection elements, map keys, and map values
25+
* are never changed. The referenced objects themselves still could be changed if they
26+
* are mutable.
2527
*
2628
* @see UnmodifiableView
2729
* @since 19.0.0

java8/src/main/java/org/jetbrains/annotations/UnmodifiableView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* An annotation which marks a {@link java.util.Collection} or {@link java.util.Map} type
22-
* as unmodifiable. A collection or a map is unmodifiable if any mutator methods
22+
* as unmodifiable view. A collection or a map is unmodifiable view if any mutator methods
2323
* (e.g. {@link java.util.Collection#add(Object)}) throw exception or have no effect.
2424
* However, the content of the collection or the map may still be updated by other code.
2525
*

0 commit comments

Comments
 (0)