Skip to content

Commit bebc2da

Browse files
committed
Various code fixes
- Resulting from Sonarcloud analysis. ***NO_CI***
1 parent 063d7a1 commit bebc2da

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

System.IO.FileSystem/FileStream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public class FileStream : Stream
1818
private bool _canWrite;
1919
private bool _canSeek;
2020

21-
private long _seekLimit;
21+
private readonly long _seekLimit;
2222
private long _position;
2323

2424
private bool _disposed;
2525

26-
private string _name;
27-
private string _path;
26+
private readonly string _name;
27+
private readonly string _path;
2828

2929
#endregion
3030

System.IO.FileSystem/Path.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ public sealed class Path
3535
/// <summary>
3636
/// Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class.
3737
/// </summary>
38-
//public static readonly char[] InvalidPathChars = { '/', '\"', '<', '>', '|', ':', '\0', (Char)1, (Char)2, (Char)3, (Char)4, (Char)5, (Char)6, (Char)7, (Char)8, (Char)9, (Char)10, (Char)11, (Char)12, (Char)13, (Char)14, (Char)15, (Char)16, (Char)17, (Char)18, (Char)19, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25, (Char)26, (Char)27, (Char)28, (Char)29, (Char)30, (Char)31 };
3938
public static readonly char[] InvalidPathChars = { '/', '\"', '<', '>', '|', '\0', (char)1, (char)2, (char)3, (char)4, (char)5, (char)6, (char)7, (char)8, (char)9, (char)10, (char)11, (char)12, (char)13, (char)14, (char)15, (char)16, (char)17, (char)18, (char)19, (char)20, (char)21, (char)22, (char)23, (char)24, (char)25, (char)26, (char)27, (char)28, (char)29, (char)30, (char)31 };
4039

41-
internal static char[] m_illegalCharacters = { '?', '*' };
40+
internal static readonly char[] m_illegalCharacters = { '?', '*' };
4241

4342
#endregion
4443

0 commit comments

Comments
 (0)