Skip to content

Commit 76992ca

Browse files
committed
Codacy issues fix.
1 parent 4445d5b commit 76992ca

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Link.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public static Link Create(Link source, Link linker, Link target)
301301
Link link = CreateLink(source, linker, target);
302302
if (link == null)
303303
{
304-
throw new OutOfMemoryException();
304+
throw new InvalidOperationException("Невозможно создать связь.");
305305
}
306306
CreatedEvent.Invoke(new LinkDefinition(link));
307307
return link;

Net.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public enum NetMapping : long
5050
Code
5151
}
5252

53-
public class Net
53+
public static class Net
5454
{
5555
public static Link Link { get; private set; }
5656
public static Link Thing { get; private set; }

NumberHelpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public static Link FromNumber(long number)
7070
{
7171
if ((number & key) == key)
7272
{
73-
links[i++] = FromPowerOf2(powerOf2);
73+
links[i] = FromPowerOf2(powerOf2);
74+
i++;
7475
}
7576
}
7677
}

Sequences/SequenceHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Platform.Data.Triplets.Sequences
99
/// TODO: Check that CollectMatchingSequences algorithm is working, if not throw it away.
1010
/// TODO: Think of the abstraction on Sequences that can be equally usefull for triple links, doublet links and so on.
1111
/// </remarks>
12-
public class SequenceHelpers
12+
public static class SequenceHelpers
1313
{
1414
public static readonly int MaxSequenceFormatSize = 20;
1515

0 commit comments

Comments
 (0)