Skip to content

Commit

Permalink
Normalize setter Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 31, 2023
1 parent cbb98b0 commit 06ce80f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/apache/commons/collections4/MapUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ public static int size(final Map<?, ?> map) {
*
* <pre>
* Map m = MapUtils.synchronizedMap(myMap);
* Set s = m.keySet(); // outside synchronized block
* Sets s = m.keySet(); // outside synchronized block
* synchronized (m) { // synchronized on MAP!
* Iterator i = s.iterator();
* while (i.hasNext()) {
Expand Down Expand Up @@ -1767,7 +1767,7 @@ public static <K, V> Map<K, V> synchronizedMap(final Map<K, V> map) {
*
* <pre>
* Map m = MapUtils.synchronizedSortedMap(myMap);
* Set s = m.keySet(); // outside synchronized block
* Sets s = m.keySet(); // outside synchronized block
* synchronized (m) { // synchronized on MAP!
* Iterator i = s.iterator();
* while (i.hasNext()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public static <E> SortedSet<E> predicatedSortedSet(final SortedSet<E> set,
* avoid non-deterministic behavior:
*
* <pre>
* Set s = SetUtils.synchronizedSet(mySet);
* Sets s = SetUtils.synchronizedSet(mySet);
* synchronized (s) {
* Iterator i = s.iterator();
* while (i.hasNext()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void setPredicate(final Predicate<? super E> predicate) {
}

/**
* Set nextObject to the next object. If there are no more
* Sets nextObject to the next object. If there are no more
* objects, then return false. Otherwise, return true.
*/
private boolean setNextObject() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void add(final E obj) {
}

/**
* Set sets the value of the singleton.
* Sets sets the value of the singleton.
*
* @param obj the object to set
* @throws IllegalStateException if {@code next} has not been called
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ public Collection<E> getCollection() {
}

/**
* Set the collection.
* Sets the collection.
* @param collection the Collection<E> to set
*/
public void setCollection(final Collection<E> collection) {
Expand All @@ -1368,7 +1368,7 @@ public Collection<E> getConfirmed() {
}

/**
* Set the confirmed.
* Sets the confirmed.
* @param confirmed the Collection<E> to set
*/
public void setConfirmed(final Collection<E> confirmed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public FilterIteratorTest() {
private FilterIterator<E> iterator;

/**
* Set up instance variables required by this test case.
* Sets up instance variables required by this test case.
*/
@BeforeEach
public void setUp() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void verify() {
}

/**
* Set equals method is defined.
* Sets equals method is defined.
*/
@Override
public boolean isEqualsCheckable() {
Expand Down

0 comments on commit 06ce80f

Please sign in to comment.