diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-06-04 16:13:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-06-04 16:13:59 +0100 |
| commit | 117e22cdd0d6b20968fc39e2c8e1a7e6c73e9e73 (patch) | |
| tree | 0d1d5fedf73a322b9f72ff6593739f0188714f2c /Mammoth/Couscous/java/util/HashMap.cs | |
| parent | f5a729ceda45b534c7cc709097cf6d115afa52fa (diff) | |
Use single instance of None
Diffstat (limited to 'Mammoth/Couscous/java/util/HashMap.cs')
| -rw-r--r-- | Mammoth/Couscous/java/util/HashMap.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mammoth/Couscous/java/util/HashMap.cs b/Mammoth/Couscous/java/util/HashMap.cs index 38e516e..10070fc 100644 --- a/Mammoth/Couscous/java/util/HashMap.cs +++ b/Mammoth/Couscous/java/util/HashMap.cs @@ -30,7 +30,7 @@ namespace Mammoth.Couscous.java.util { if (_dictionary.ContainsKey(key)) { return new Some<TValue>(_dictionary[key]); } else { - return new None<TValue>(); + return None<TValue>.Instance; } } |
