Skip to content

[Class] Enable nullability + fix a few code updates. - #13281

Merged
rolfbjarne merged 3 commits into
dotnet:mainfrom
rolfbjarne:nullability-class
Nov 8, 2021
Merged

[Class] Enable nullability + fix a few code updates.#13281
rolfbjarne merged 3 commits into
dotnet:mainfrom
rolfbjarne:nullability-class

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member
  • Enable nullability and fix code accordingly.
  • Use 'is' and 'is not' instead of '==' and '!=' for object identity.
  • Use 'nameof (parameter)' instead of string constants.
  • Make the 'handle' field private.
  • Remove the (IntPtr) constructor for .NET
  • Make the (IntPtr, bool) constructor internal for .NET
  • Remove unused 'Construct' method.

* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Make the 'handle' field private.
* Remove the (IntPtr) constructor for .NET
* Make the (IntPtr, bool) constructor internal for .NET
* Remove unused 'Construct' method.
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner November 4, 2021 13:59
@rolfbjarne rolfbjarne added the not-notes-worthy Ignore for release notes label Nov 4, 2021
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

6 tests failed, 93 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug [dotnet]: BuildFailure
  • monotouch-test/Mac Catalyst [dotnet]/Debug [dotnet]: BuildFailure
  • xammac tests/Mac Modern/Debug: Failed (Test run failed.
    Tests run: 2544 Passed: 2423 Inconclusive: 10 Failed: 1 Ignored: 120)
  • xammac tests/Mac Modern/Release: Failed (Test run failed.
    Tests run: 2541 Passed: 2419 Inconclusive: 10 Failed: 1 Ignored: 121)
  • xammac tests/Mac Modern/Release (all optimizations): Failed (Test run failed.
    Tests run: 2541 Passed: 2418 Inconclusive: 10 Failed: 1 Ignored: 122)
  • Xtro/Mac: BuildFailure

Pipeline on Agent XAMBOT-1094.BigSur'
Merge e95dc63 into bf8337a

Comment thread src/ObjCRuntime/Class.cs
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

❌ [CI Build] Tests didn't execute on Build. ❌

Tests didn't execute on Build.

No test summary was found (something probably failed before the tests could execute)

Pipeline on Agent
Merge 0381283 into 6b3ebd2

@rolfbjarne

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

7 tests failed, 92 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 2539 Passed: 2413 Inconclusive: 10 Failed: 1 Ignored: 125)
  • monotouch-test/Mac Catalyst [dotnet]/Debug [dotnet]: Failed (Tests run: 2704 Passed: 2500 Inconclusive: 35 Failed: 1 Ignored: 203)
  • monotouch-test/watchOS 32-bits - simulator/Debug (static registrar): TimedOut
  • monotouch-test/watchOS 32-bits - simulator/Release (all optimizations): Crashed
  • xammac tests/Mac Modern/Debug: Failed (Test run failed.
    Tests run: 2544 Passed: 2423 Inconclusive: 10 Failed: 1 Ignored: 120)
  • xammac tests/Mac Modern/Release: Failed (Test run failed.
    Tests run: 2541 Passed: 2419 Inconclusive: 10 Failed: 1 Ignored: 121)
  • xammac tests/Mac Modern/Release (all optimizations): Failed (Test run failed.
    Tests run: 2541 Passed: 2418 Inconclusive: 10 Failed: 1 Ignored: 122)

Pipeline on Agent XAMBOT-1094.BigSur'
Merge 0381283 into 6b3ebd2

@rolfbjarne

rolfbjarne commented Nov 8, 2021

Copy link
Copy Markdown
Member Author

Test failures are unrelated:

Build is currently broken in main, waiting to merge until that's fixed (#13304).

@rolfbjarne
rolfbjarne merged commit cd173c4 into dotnet:main Nov 8, 2021
@rolfbjarne
rolfbjarne deleted the nullability-class branch November 8, 2021 15:13
spouliot added a commit to spouliot/xamarin-macios that referenced this pull request Feb 15, 2022
The split [1] was done to ease nullability annotations since there's no
syntax to cover this specific case with custom attributes.

However we don't need three methods for the split. Two are enough :)

[1] dotnet#13281
spouliot added a commit to spouliot/xamarin-macios that referenced this pull request Feb 15, 2022
That was mentioned

> Remove the (IntPtr) constructor for .NET

inside dotnet#13281
but not actually done inside that PR
rolfbjarne pushed a commit that referenced this pull request Feb 15, 2022
…14138)

The split [1] was done to ease nullability annotations since there's no
syntax to cover this specific case with custom attributes.

However we don't need three methods for the split. Two are enough :)

[1] #13281
rolfbjarne pushed a commit that referenced this pull request Feb 15, 2022
That was mentioned

> Remove the (IntPtr) constructor for .NET

inside #13281
but not actually done inside that PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants