commit | 8f39cfbe531202523e591cae4663c7f0c3c75c9f | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Mon Nov 16 09:12:09 2015 -0800 |
committer | Simon Hunt <simon@onlab.us> | Mon Nov 16 11:39:27 2015 -0800 |
tree | 7d40fe48c7359e1bd0a04c7c11d7958c3a92f308 | |
parent | f563830299f152e04717ef32fef84dadcd0ed54d [diff] |
Make DefaultHashMap class final. Change-Id: Ia651b5aa098b584559e5ef2556dcac3178da615b
diff --git a/utils/misc/src/main/java/org/onlab/util/DefaultHashMap.java b/utils/misc/src/main/java/org/onlab/util/DefaultHashMap.java index f9d878a..d6ddbd5 100644 --- a/utils/misc/src/main/java/org/onlab/util/DefaultHashMap.java +++ b/utils/misc/src/main/java/org/onlab/util/DefaultHashMap.java
@@ -21,10 +21,10 @@ /** * HashMap that returns a default value for unmapped keys. */ -public class DefaultHashMap<K, V> extends HashMap<K, V> { +public final class DefaultHashMap<K, V> extends HashMap<K, V> { /** Default value to return when no key binding exists. */ - protected V defaultValue; + protected final V defaultValue; /** * Constructs an empty map with the given default value.