Skip to content

Commit

Permalink
fixes in .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Petrovskiy committed Nov 17, 2023
1 parent 6aa3029 commit e36e348
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ namespace Challenges.C20210101_20210107.FindACorrespondingNodeOfABinaryTreeInACl
public class TreeNode
{
private int val;
private privateTreeNode left;
private privateTreeNode right;
private TreeNode left;

Check warning on line 11 in src/main/java/challenges/c20210101_20210107/FindACorrespondingNodeOfABinaryTreeInACloneOfThatTree/TreeNode.cs

View workflow job for this annotation

GitHub Actions / dotnet

The field 'TreeNode.left' is never used
private TreeNode right;

Check warning on line 12 in src/main/java/challenges/c20210101_20210107/FindACorrespondingNodeOfABinaryTreeInACloneOfThatTree/TreeNode.cs

View workflow job for this annotation

GitHub Actions / dotnet

The field 'TreeNode.right' is never used

public TreeNode(int x)

Check warning on line 14 in src/main/java/challenges/c20210101_20210107/FindACorrespondingNodeOfABinaryTreeInACloneOfThatTree/TreeNode.cs

View workflow job for this annotation

GitHub Actions / dotnet

Non-nullable field 'left' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.

Check warning on line 14 in src/main/java/challenges/c20210101_20210107/FindACorrespondingNodeOfABinaryTreeInACloneOfThatTree/TreeNode.cs

View workflow job for this annotation

GitHub Actions / dotnet

Non-nullable field 'right' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
{
this.val = x;
}
}
}
2 changes: 1 addition & 1 deletion src/test/java/challenges/c20201001_20201007/SomeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class SomeTest
public void Test()
{
// TODO: make it really working
val actual = 2 - 1
var actual = 2 - 1;
Assert.That(actual, Is.EqualTo(3 - 2));
}
}
26 changes: 13 additions & 13 deletions testLeCo.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{707B7DD3-1FCD-40E2-B2B0-85DE87E14149}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{CA99F0EC-1599-4CFD-87F5-79F83B96D870}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "main", "src\main\main.csproj", "{E68CDD81-C6EB-4C75-8171-2C8D07B8D4C7}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "main", "src\main\main.csproj", "{15C907E5-433F-4DAB-BF31-8EF8C7C1D851}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "src\test\test.csproj", "{1A2F8582-8D75-4A8E-AF0F-E3E5CAAD0295}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "src\test\test.csproj", "{76D1352F-0487-49EE-B417-04F474A92C1B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -18,17 +18,17 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E68CDD81-C6EB-4C75-8171-2C8D07B8D4C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E68CDD81-C6EB-4C75-8171-2C8D07B8D4C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E68CDD81-C6EB-4C75-8171-2C8D07B8D4C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E68CDD81-C6EB-4C75-8171-2C8D07B8D4C7}.Release|Any CPU.Build.0 = Release|Any CPU
{1A2F8582-8D75-4A8E-AF0F-E3E5CAAD0295}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A2F8582-8D75-4A8E-AF0F-E3E5CAAD0295}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A2F8582-8D75-4A8E-AF0F-E3E5CAAD0295}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A2F8582-8D75-4A8E-AF0F-E3E5CAAD0295}.Release|Any CPU.Build.0 = Release|Any CPU
{15C907E5-433F-4DAB-BF31-8EF8C7C1D851}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15C907E5-433F-4DAB-BF31-8EF8C7C1D851}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15C907E5-433F-4DAB-BF31-8EF8C7C1D851}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15C907E5-433F-4DAB-BF31-8EF8C7C1D851}.Release|Any CPU.Build.0 = Release|Any CPU
{76D1352F-0487-49EE-B417-04F474A92C1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{76D1352F-0487-49EE-B417-04F474A92C1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{76D1352F-0487-49EE-B417-04F474A92C1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{76D1352F-0487-49EE-B417-04F474A92C1B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E68CDD81-C6EB-4C75-8171-2C8D07B8D4C7} = {707B7DD3-1FCD-40E2-B2B0-85DE87E14149}
{1A2F8582-8D75-4A8E-AF0F-E3E5CAAD0295} = {707B7DD3-1FCD-40E2-B2B0-85DE87E14149}
{15C907E5-433F-4DAB-BF31-8EF8C7C1D851} = {CA99F0EC-1599-4CFD-87F5-79F83B96D870}
{76D1352F-0487-49EE-B417-04F474A92C1B} = {CA99F0EC-1599-4CFD-87F5-79F83B96D870}
EndGlobalSection
EndGlobal

0 comments on commit e36e348

Please sign in to comment.