Skip to content

Commit b4e5951

Browse files
committed
Cleanup
1 parent 8dca5b1 commit b4e5951

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

CodeJam.Main/Collections/Dictionary/LazyDictionary`2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.
9292
/// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the <paramref name="value" /> parameter. This parameter is passed uninitialized.</param>
9393
/// <exception cref="T:System.ArgumentNullException">
9494
/// <paramref name="key" /> is null.</exception>
95-
public bool TryGetValue([NotNull] TKey key, out TValue value) => _map.TryGetValue(key, out value);
95+
public bool TryGetValue(TKey key, out TValue value) => _map.TryGetValue(key, out value);
9696

9797
/// <summary>Gets the element that has the specified key in the read-only dictionary.</summary>
9898
/// <returns>The element that has the specified key in the read-only dictionary.</returns>

CodeJam.Main/Ranges/[CompositeRanges]/CompositeRange`1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public override string ToString()
288288
/// <param name="format">The format string.</param>
289289
/// <param name="formatProvider">The format provider.</param>
290290
/// <returns>The string representation of the range.</returns>
291-
[Pure, NotNull]
291+
[Pure]
292292
public string ToString(string format, IFormatProvider formatProvider)
293293
{
294294
if (IsEmpty)

CodeJam.Main/Ranges/[Helper types]/RangeIntersection`1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public override string ToString()
107107
/// <param name="format">The format string.</param>
108108
/// <param name="formatProvider">The format provider.</param>
109109
/// <returns>The string representation of the range.</returns>
110-
[NotNull, Pure]
110+
[Pure]
111111
public string ToString(string format, IFormatProvider formatProvider)
112112
{
113113
var intersectionRangePart = IntersectionRange.ToString(format, formatProvider);

CodeJam.Main/Ranges/[Ranges]/Range`1.NonGenerated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public override string ToString() =>
108108
/// <param name="format">The format string.</param>
109109
/// <param name="formatProvider">The format provider.</param>
110110
/// <returns>The string representation of the range.</returns>
111-
[Pure][NotNull]
111+
[Pure]
112112
[SuppressMessage("ReSharper", "ArrangeRedundantParentheses")]
113113
public string ToString(string format, IFormatProvider formatProvider) =>
114114
IsEmpty

CodeJam.Main/Readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ What's new in 2.2.0-beta2
99
* ExceptionExtensions.ToDiagnosticString[Async] improvements
1010
* DictionaryExtensions.GetOrAddAsync/AddOrUpdateAsync
1111
* LazyDictionary ctors and Create with initial data supplied
12+
* Fixes, refactoring and code cleanup
1213

1314
What's new in 2.2.0-beta1
1415
-------------------------

CodeJam.Main/Threading/ConcurrentLazyDictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.
102102
/// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the <paramref name="value" /> parameter. This parameter is passed uninitialized.</param>
103103
/// <exception cref="T:System.ArgumentNullException">
104104
/// <paramref name="key" /> is null.</exception>
105-
public bool TryGetValue([NotNull] TKey key, out TValue value) => _map.TryGetValue(key, out value);
105+
public bool TryGetValue(TKey key, out TValue value) => _map.TryGetValue(key, out value);
106106

107107
/// <summary>Gets the element that has the specified key in the read-only dictionary.</summary>
108108
/// <returns>The element that has the specified key in the read-only dictionary.</returns>

CodeJam.Main/Threading/ExecSyncConcurrentLazyDictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.
117117
/// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the <paramref name="value" /> parameter. This parameter is passed uninitialized.</param>
118118
/// <exception cref="T:System.ArgumentNullException">
119119
/// <paramref name="key" /> is null.</exception>
120-
public bool TryGetValue([NotNull] TKey key, out TValue value)
120+
public bool TryGetValue(TKey key, out TValue value)
121121
{
122122
var res = _map.TryGetValue(key, out var lv);
123123
value = res ? lv.Value : default;

0 commit comments

Comments
 (0)