Skip to content

Commit 9135b85

Browse files
authored
[WARNING] CS0628: new protected member declared in sealed type (#6626)
* new protected member declared in sealed type * changes to `public`
1 parent 0b8cc60 commit 9135b85

9 files changed

+15
-15
lines changed

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.DotNet.verified.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ namespace Akka.Actor
16141614
public sealed class SchedulerException : Akka.Actor.AkkaException
16151615
{
16161616
public SchedulerException(string message) { }
1617-
protected SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1617+
public SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
16181618
}
16191619
public class static SchedulerExtensions
16201620
{

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.Net.verified.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ namespace Akka.Actor
16121612
public sealed class SchedulerException : Akka.Actor.AkkaException
16131613
{
16141614
public SchedulerException(string message) { }
1615-
protected SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1615+
public SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
16161616
}
16171617
public class static SchedulerExtensions
16181618
{

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveStreams.DotNet.verified.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Akka.Streams
1212
public sealed class AbruptStageTerminationException : System.Exception
1313
{
1414
public AbruptStageTerminationException(Akka.Streams.Stage.GraphStageLogic logic) { }
15-
protected AbruptStageTerminationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
15+
public AbruptStageTerminationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1616
}
1717
public class AbruptTerminationException : System.Exception
1818
{
@@ -1804,7 +1804,7 @@ namespace Akka.Streams.Dsl
18041804
public sealed class PartitionOutOfBoundsException : System.Exception
18051805
{
18061806
public PartitionOutOfBoundsException(string message) { }
1807-
protected PartitionOutOfBoundsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1807+
public PartitionOutOfBoundsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
18081808
}
18091809
public class PartitionWith<TIn, TOut0, TOut1> : Akka.Streams.Stage.GraphStage<Akka.Streams.FanOutShape<TIn, TOut0, TOut1>>
18101810
{
@@ -2393,7 +2393,7 @@ namespace Akka.Streams.Dsl
23932393
public sealed class TcpIdleTimeoutException : System.TimeoutException
23942394
{
23952395
public TcpIdleTimeoutException(string message, System.TimeSpan duration) { }
2396-
protected TcpIdleTimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
2396+
public TcpIdleTimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
23972397
public System.TimeSpan Duration { get; }
23982398
}
23992399
public class static TcpStreamExtensions

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveStreams.Net.verified.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Akka.Streams
1212
public sealed class AbruptStageTerminationException : System.Exception
1313
{
1414
public AbruptStageTerminationException(Akka.Streams.Stage.GraphStageLogic logic) { }
15-
protected AbruptStageTerminationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
15+
public AbruptStageTerminationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1616
}
1717
public class AbruptTerminationException : System.Exception
1818
{
@@ -1804,7 +1804,7 @@ namespace Akka.Streams.Dsl
18041804
public sealed class PartitionOutOfBoundsException : System.Exception
18051805
{
18061806
public PartitionOutOfBoundsException(string message) { }
1807-
protected PartitionOutOfBoundsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1807+
public PartitionOutOfBoundsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
18081808
}
18091809
public class PartitionWith<TIn, TOut0, TOut1> : Akka.Streams.Stage.GraphStage<Akka.Streams.FanOutShape<TIn, TOut0, TOut1>>
18101810
{
@@ -2393,7 +2393,7 @@ namespace Akka.Streams.Dsl
23932393
public sealed class TcpIdleTimeoutException : System.TimeoutException
23942394
{
23952395
public TcpIdleTimeoutException(string message, System.TimeSpan duration) { }
2396-
protected TcpIdleTimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
2396+
public TcpIdleTimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
23972397
public System.TimeSpan Duration { get; }
23982398
}
23992399
public class static TcpStreamExtensions

src/core/Akka.Remote/Endpoint.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public EndpointDisassociatedException(string message)
329329
/// </summary>
330330
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
331331
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
332-
protected EndpointDisassociatedException(SerializationInfo info, StreamingContext context)
332+
public EndpointDisassociatedException(SerializationInfo info, StreamingContext context)
333333
: base(info, context)
334334
{
335335
}
@@ -361,7 +361,7 @@ public EndpointAssociationException(string message, Exception innerException) :
361361
/// </summary>
362362
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
363363
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
364-
protected EndpointAssociationException(SerializationInfo info, StreamingContext context)
364+
EndpointAssociationException(SerializationInfo info, StreamingContext context)
365365
: base(info, context)
366366
{
367367
}
@@ -386,7 +386,7 @@ public OversizedPayloadException(string message)
386386
/// </summary>
387387
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
388388
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
389-
protected OversizedPayloadException(SerializationInfo info, StreamingContext context)
389+
OversizedPayloadException(SerializationInfo info, StreamingContext context)
390390
: base(info, context)
391391
{
392392
}

src/core/Akka.Streams/ActorMaterializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public AbruptStageTerminationException(GraphStageLogic logic)
347347
/// </summary>
348348
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
349349
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param>
350-
protected AbruptStageTerminationException(SerializationInfo info, StreamingContext context) : base(info, context) { }
350+
public AbruptStageTerminationException(SerializationInfo info, StreamingContext context) : base(info, context) { }
351351
}
352352

353353

src/core/Akka.Streams/Dsl/Graph.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ public PartitionOutOfBoundsException(string message) : base(message)
12191219
/// </summary>
12201220
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
12211221
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param>
1222-
protected PartitionOutOfBoundsException(SerializationInfo info, StreamingContext context) : base(info, context) { }
1222+
public PartitionOutOfBoundsException(SerializationInfo info, StreamingContext context) : base(info, context) { }
12231223
}
12241224

12251225
/// <summary>

src/core/Akka.Streams/Dsl/Tcp.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public TcpIdleTimeoutException(string message, TimeSpan duration) : base(message
309309
/// </summary>
310310
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
311311
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param>
312-
protected TcpIdleTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) { }
312+
public TcpIdleTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) { }
313313

314314
public TimeSpan Duration { get; }
315315
}

src/core/Akka/Actor/Scheduler/SchedulerException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public SchedulerException(string message) : base(message) { }
2626
/// </summary>
2727
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
2828
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param>
29-
protected SchedulerException(SerializationInfo info, StreamingContext context)
29+
public SchedulerException(SerializationInfo info, StreamingContext context)
3030
: base(info, context)
3131
{
3232
}

0 commit comments

Comments
 (0)