Skip to content

Commit

Permalink
Make package private class final
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 5, 2023
1 parent aa4a148 commit 07967af
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* @since 4.2 (Copied from Apache Commons Lang.)
*/
class ArrayUtils {
final class ArrayUtils {


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public int getCount(final Object object) {
/**
* Synchronized Set for the Bag class.
*/
class SynchronizedBagSet extends SynchronizedCollection<E> implements Set<E> {
final class SynchronizedBagSet extends SynchronizedCollection<E> implements Set<E> {
/** Serialization version */
private static final long serialVersionUID = 2990565892366827855L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ public void clear() {
}
}

class KeyView extends AbstractView<K> {
final class KeyView extends AbstractView<K> {

/**
* Creates a new TreeBidiMap.KeyView.
Expand All @@ -1523,7 +1523,7 @@ public boolean remove(final Object o) {

}

class ValueView extends AbstractView<V> {
final class ValueView extends AbstractView<V> {

/**
* Creates a new TreeBidiMap.ValueView.
Expand Down Expand Up @@ -1553,7 +1553,7 @@ public boolean remove(final Object o) {
/**
* A view of this map.
*/
class EntryView extends AbstractView<Map.Entry<K, V>> {
final class EntryView extends AbstractView<Map.Entry<K, V>> {

EntryView() {
super(KEY);
Expand Down Expand Up @@ -1594,7 +1594,7 @@ public Iterator<Map.Entry<K, V>> iterator() {
/**
* A view of this map.
*/
class InverseEntryView extends AbstractView<Map.Entry<V, K>> {
final class InverseEntryView extends AbstractView<Map.Entry<V, K>> {

InverseEntryView() {
super(VALUE);
Expand Down Expand Up @@ -1718,7 +1718,7 @@ public final void remove() {
/**
* An iterator over the map.
*/
class ViewMapIterator extends AbstractViewIterator implements OrderedMapIterator<K, V> {
final class ViewMapIterator extends AbstractViewIterator implements OrderedMapIterator<K, V> {

/**
* Constructor.
Expand Down Expand Up @@ -1764,7 +1764,7 @@ public K previous() {
/**
* An iterator over the map.
*/
class InverseViewMapIterator extends AbstractViewIterator implements OrderedMapIterator<V, K> {
final class InverseViewMapIterator extends AbstractViewIterator implements OrderedMapIterator<V, K> {

/**
* Creates a new TreeBidiMap.InverseViewMapIterator.
Expand Down Expand Up @@ -1810,7 +1810,7 @@ public V previous() {
/**
* An iterator over the map entries.
*/
class ViewMapEntryIterator extends AbstractViewIterator implements OrderedIterator<Map.Entry<K, V>> {
final class ViewMapEntryIterator extends AbstractViewIterator implements OrderedIterator<Map.Entry<K, V>> {

/**
* Constructor.
Expand All @@ -1833,7 +1833,7 @@ public Map.Entry<K, V> previous() {
/**
* An iterator over the inverse map entries.
*/
class InverseViewMapEntryIterator extends AbstractViewIterator implements OrderedIterator<Map.Entry<V, K>> {
final class InverseViewMapEntryIterator extends AbstractViewIterator implements OrderedIterator<Map.Entry<V, K>> {

/**
* Constructor.
Expand Down Expand Up @@ -2083,7 +2083,7 @@ public int hashCode() {
/**
* The inverse map implementation.
*/
class Inverse implements OrderedBidiMap<V, K> {
final class Inverse implements OrderedBidiMap<V, K> {

/** Store the keySet once created. */
private Set<V> inverseKeySet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @since 3.0
*/
class FunctorUtils {
final class FunctorUtils {

/**
* Restricted constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ public void clear() {
AbstractMultiValuedMap.this.clear();
}

class AsMapEntrySet extends AbstractSet<Map.Entry<K, Collection<V>>> {
final class AsMapEntrySet extends AbstractSet<Map.Entry<K, Collection<V>>> {

@Override
public Iterator<Map.Entry<K, Collection<V>>> iterator() {
Expand Down Expand Up @@ -864,7 +864,7 @@ public boolean remove(final Object o) {
/**
* EntrySet iterator for the asMap view.
*/
class AsMapEntrySetIterator extends AbstractIteratorDecorator<Map.Entry<K, Collection<V>>> {
final class AsMapEntrySetIterator extends AbstractIteratorDecorator<Map.Entry<K, Collection<V>>> {

AsMapEntrySetIterator(final Iterator<Map.Entry<K, Collection<V>>> iterator) {
super(iterator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
public class SetUniqueListTest<E> extends AbstractListTest<E> {

class SetUniqueList307 extends SetUniqueList<E> {
final class SetUniqueList307 extends SetUniqueList<E> {
/**
* Generated serial version ID.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* the class has to be separate of TestCompositeMap, else the test
* class also has to be serialized.
*/
class EmptyMapMutator<K, V> implements CompositeMap.MapMutator<K, V> {
final class EmptyMapMutator<K, V> implements CompositeMap.MapMutator<K, V> {
/** Serialization version */
private static final long serialVersionUID = -2729718980002476794L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* the class has to be separate of CompositeSetTest, else the test
* class also has to be serialized.
*/
class EmptySetMutator<E> implements CompositeSet.SetMutator<E> {
final class EmptySetMutator<E> implements CompositeSet.SetMutator<E> {

/** Serialization version */
private static final long serialVersionUID = 5321193666420238910L;
Expand Down

0 comments on commit 07967af

Please sign in to comment.