Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 8a6aa97

Browse files
authored
Merge pull request #8827 from mono/nullability-simple
Annotate more files with nullable enable
2 parents e8a9e45 + 7b0c842 commit 8a6aa97

File tree

7 files changed

+115
-106
lines changed

7 files changed

+115
-106
lines changed

main/src/core/MonoDevelop.Core/CoreExtensions.Array.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2424
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2525
// THE SOFTWARE.
26+
#nullable enable
27+
2628
using System;
2729
namespace System
2830
{

main/src/core/MonoDevelop.Core/MonoDevelop.Core/ErrorHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2424
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2525
// THE SOFTWARE.
26+
#nullable enable
27+
2628
using System;
2729
using System.Diagnostics.Contracts;
2830
using System.Text;
@@ -32,7 +34,7 @@ namespace MonoDevelop.Core
3234
public static class ErrorHelper
3335
{
3436
[Pure]
35-
public static string GetErrorMessage (string message, Exception ex)
37+
public static string? GetErrorMessage (string? message, Exception? ex)
3638
{
3739
var exMsg = ex != null ? GetErrorMessage (ex) : "";
3840
if (string.IsNullOrEmpty (message)) {

0 commit comments

Comments
 (0)