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