A game framework written with osu! in mind.

Fix some new inspections from latest resharper EAP

+10 -7
+7 -2
osu.Framework.Tests/Audio/TestAudioAdjustments.cs
··· 125 125 public void TestAdjustBoundComponentBeforeBind() 126 126 { 127 127 var adjustments = new AudioAdjustments(); 128 - var adjustments2 = new AudioAdjustments(); 129 128 130 - adjustments2.Volume.Value = 0.5f; 129 + var adjustments2 = new AudioAdjustments 130 + { 131 + Volume = 132 + { 133 + Value = 0.5f 134 + } 135 + }; 131 136 132 137 adjustments.BindAdjustments(adjustments2); 133 138
+1 -1
osu.Framework/Bindables/NonNullableBindable.cs
··· 22 22 set 23 23 { 24 24 if (value == null) 25 - throw new ArgumentNullException(nameof(Value), $"Cannot set {nameof(Value)} of a {nameof(NonNullableBindable<T>)} to null."); 25 + throw new ArgumentNullException(nameof(value), $"Cannot set {nameof(Value)} of a {nameof(NonNullableBindable<T>)} to null."); 26 26 27 27 base.Value = value; 28 28 }
+2 -2
osu.Framework/Graphics/Containers/GridContainer.cs
··· 73 73 set 74 74 { 75 75 if (value == null) 76 - throw new ArgumentNullException(nameof(RowDimensions)); 76 + throw new ArgumentNullException(nameof(value)); 77 77 78 78 if (rowDimensions == value) 79 79 return; ··· 94 94 set 95 95 { 96 96 if (value == null) 97 - throw new ArgumentNullException(nameof(ColumnDimensions)); 97 + throw new ArgumentNullException(nameof(value)); 98 98 99 99 if (columnDimensions == value) 100 100 return;
-2
osu.Framework/Localisation/LocalisationManager.cs
··· 3 3 4 4 using System.Collections.Generic; 5 5 using System.Globalization; 6 - using JetBrains.Annotations; 7 6 using osu.Framework.Bindables; 8 7 using osu.Framework.Configuration; 9 8 ··· 37 36 /// Creates an <see cref="ILocalisedBindableString"/> which automatically updates its text according to information provided in <see cref="ILocalisedBindableString.Text"/>. 38 37 /// </summary> 39 38 /// <returns>The <see cref="ILocalisedBindableString"/>.</returns> 40 - [NotNull] 41 39 public ILocalisedBindableString GetLocalisedString(LocalisableString original) => new LocalisedBindableString(original, currentStorage, preferUnicode); 42 40 43 41 private void updateLocale(ValueChangedEvent<string> locale)