Skip to content

Commit d2e7354

Browse files
Fix NRT annotations in remaining LlvmIrGenerator files
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
1 parent c7b472e commit d2e7354

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Xamarin.Android.Build.Tasks/Utilities/LlvmIrGenerator/LlvmIrFunctionBody.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#nullable disable
1+
#nullable enable
22

33
using System;
44
using System.Collections.Generic;
@@ -24,7 +24,7 @@ abstract class LlvmIrFunctionBodyItem
2424
public void Write (GeneratorWriteContext context, LlvmIrGenerator generator)
2525
{
2626
DoWrite (context, generator);
27-
if (!String.IsNullOrEmpty (Comment)) {
27+
if (!Comment.IsNullOrEmpty ()) {
2828
context.Output.Write (' ');
2929
generator.WriteComment (context, Comment);
3030
}
@@ -44,14 +44,14 @@ abstract class LlvmIrFunctionLocalItem : LlvmIrFunctionBodyItem
4444

4545
public string Name {
4646
get {
47-
if (String.IsNullOrEmpty (name)) {
47+
if (name.IsNullOrEmpty ()) {
4848
throw new InvalidOperationException ("Internal error: name hasn't been set yet");
4949
}
5050
return name;
5151
}
5252

5353
protected set {
54-
if (String.IsNullOrEmpty (value)) {
54+
if (value.IsNullOrEmpty ()) {
5555
throw new InvalidOperationException ("Internal error: value must not be null or empty");
5656
}
5757
name = value;
@@ -84,7 +84,7 @@ protected void SetName (ulong num)
8484
Name = num.ToString (CultureInfo.InvariantCulture);
8585
}
8686

87-
protected bool NameIsSet () => !String.IsNullOrEmpty (name);
87+
protected bool NameIsSet () => !name.IsNullOrEmpty ();
8888
}
8989

9090
class LlvmIrFunctionLabelItem : LlvmIrFunctionLocalItem

src/Xamarin.Android.Build.Tasks/Utilities/LlvmIrGenerator/LlvmIrGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#nullable disable
1+
#nullable enable
22

33
using System;
44
using System.Buffers;

0 commit comments

Comments
 (0)