made inner classes static and final
This commit is contained in:
parent
ae034b5ca2
commit
6f0a6a4662
@ -673,7 +673,7 @@ public final class LinkedHashTreeMap<K, V> extends AbstractMap<K, V> implements
|
|||||||
* comparisons. Using this class to create a tree of size <i>S</i> is
|
* comparisons. Using this class to create a tree of size <i>S</i> is
|
||||||
* {@code O(S)}.
|
* {@code O(S)}.
|
||||||
*/
|
*/
|
||||||
static class AvlBuilder<K, V> {
|
final static class AvlBuilder<K, V> {
|
||||||
/** This stack is a singly linked list, linked by the 'parent' field. */
|
/** This stack is a singly linked list, linked by the 'parent' field. */
|
||||||
private Node<K, V> stack;
|
private Node<K, V> stack;
|
||||||
private int leavesToSkip;
|
private int leavesToSkip;
|
||||||
|
@ -76,7 +76,7 @@ public final class Streams {
|
|||||||
* Adapts an {@link Appendable} so it can be passed anywhere a {@link Writer}
|
* Adapts an {@link Appendable} so it can be passed anywhere a {@link Writer}
|
||||||
* is used.
|
* is used.
|
||||||
*/
|
*/
|
||||||
private static class AppendableWriter extends Writer {
|
private static final class AppendableWriter extends Writer {
|
||||||
private final Appendable appendable;
|
private final Appendable appendable;
|
||||||
private final CurrentWrite currentWrite = new CurrentWrite();
|
private final CurrentWrite currentWrite = new CurrentWrite();
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ public final class ReflectiveTypeAdapterFactory implements TypeAdapterFactory {
|
|||||||
abstract void read(JsonReader reader, Object value) throws IOException, IllegalAccessException;
|
abstract void read(JsonReader reader, Object value) throws IOException, IllegalAccessException;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class Adapter<T> extends TypeAdapter<T> {
|
public static final class Adapter<T> extends TypeAdapter<T> {
|
||||||
private final ObjectConstructor<T> constructor;
|
private final ObjectConstructor<T> constructor;
|
||||||
private final Map<String, BoundField> boundFields;
|
private final Map<String, BoundField> boundFields;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user