You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[xabt] Fix NRT annotations in Xamarin.Android.Build.Tasks, part 4 (#10364)
Context: #10326
This PR enables nullable reference types (NRT) for two files in the
`src\Xamarin.Android.Build.Tasks\Utilities` directory, following the
repository's NRT guidelines.
## Changes Made
**JavaResourceParser.cs:**
- Enabled `#nullable enable`
- Made `CodeTypeDeclaration` non-nullable throughout for cleaner API
design
- Updated `Parse` method to always return a valid
`CodeTypeDeclaration` object instead of null
- Removed unnecessary null checks in lambda functions and used
null-coalescing operators
- Simplified calling code in `GenerateResourceDesigner.cs` by
eliminating null handling
- Maintained Log property validation for safety
**MD2Managed.cs:**
- Enabled `#nullable enable`
- Fixed `Padding` method to throw `ArgumentException` for invalid
input instead of returning null
- Preserved existing cryptographic logic while ensuring type safety
Co-authored-by: Jonathan Peppers <[email protected]>
0 commit comments