Skip to content

Commit 274df70

Browse files
authored
PR #450: Fix CA1200 code analyzer warnings
1 parent 23841d2 commit 274df70

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

src/ICSharpCode.SharpZipLib/Core/NameFilter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static bool IsValidFilterExpression(string toTest)
106106
/// Split a string into its component pieces
107107
/// </summary>
108108
/// <param name="original">The original string</param>
109-
/// <returns>Returns an array of <see cref="T:System.String"/> values containing the individual filter elements.</returns>
109+
/// <returns>Returns an array of <see cref="System.String"/> values containing the individual filter elements.</returns>
110110
public static string[] SplitQuoted(string original)
111111
{
112112
char escape = '\\';

src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs

+44-44
Original file line numberDiff line numberDiff line change
@@ -4004,12 +4004,12 @@ public override long Position
40044004
/// <returns>
40054005
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
40064006
/// </returns>
4007-
/// <exception cref="T:System.ArgumentException">The sum of offset and count is larger than the buffer length. </exception>
4008-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4009-
/// <exception cref="T:System.NotSupportedException">The stream does not support reading. </exception>
4010-
/// <exception cref="T:System.ArgumentNullException">buffer is null. </exception>
4011-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4012-
/// <exception cref="T:System.ArgumentOutOfRangeException">offset or count is negative. </exception>
4007+
/// <exception cref="System.ArgumentException">The sum of offset and count is larger than the buffer length. </exception>
4008+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4009+
/// <exception cref="System.NotSupportedException">The stream does not support reading. </exception>
4010+
/// <exception cref="System.ArgumentNullException">buffer is null. </exception>
4011+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4012+
/// <exception cref="System.ArgumentOutOfRangeException">offset or count is negative. </exception>
40134013
public override int Read(byte[] buffer, int offset, int count)
40144014
{
40154015
return 0;
@@ -4019,13 +4019,13 @@ public override int Read(byte[] buffer, int offset, int count)
40194019
/// Sets the position within the current stream.
40204020
/// </summary>
40214021
/// <param name="offset">A byte offset relative to the origin parameter.</param>
4022-
/// <param name="origin">A value of type <see cref="T:System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
4022+
/// <param name="origin">A value of type <see cref="System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
40234023
/// <returns>
40244024
/// The new position within the current stream.
40254025
/// </returns>
4026-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4027-
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4028-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4026+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4027+
/// <exception cref="System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4028+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
40294029
public override long Seek(long offset, SeekOrigin origin)
40304030
{
40314031
return 0;
@@ -4035,9 +4035,9 @@ public override long Seek(long offset, SeekOrigin origin)
40354035
/// Sets the length of the current stream.
40364036
/// </summary>
40374037
/// <param name="value">The desired length of the current stream in bytes.</param>
4038-
/// <exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
4039-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4040-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4038+
/// <exception cref="System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
4039+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4040+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
40414041
public override void SetLength(long value)
40424042
{
40434043
}
@@ -4048,12 +4048,12 @@ public override void SetLength(long value)
40484048
/// <param name="buffer">An array of bytes. This method copies count bytes from buffer to the current stream.</param>
40494049
/// <param name="offset">The zero-based byte offset in buffer at which to begin copying bytes to the current stream.</param>
40504050
/// <param name="count">The number of bytes to be written to the current stream.</param>
4051-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4052-
/// <exception cref="T:System.NotSupportedException">The stream does not support writing. </exception>
4053-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4054-
/// <exception cref="T:System.ArgumentNullException">buffer is null. </exception>
4055-
/// <exception cref="T:System.ArgumentException">The sum of offset and count is greater than the buffer length. </exception>
4056-
/// <exception cref="T:System.ArgumentOutOfRangeException">offset or count is negative. </exception>
4051+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4052+
/// <exception cref="System.NotSupportedException">The stream does not support writing. </exception>
4053+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4054+
/// <exception cref="System.ArgumentNullException">buffer is null. </exception>
4055+
/// <exception cref="System.ArgumentException">The sum of offset and count is greater than the buffer length. </exception>
4056+
/// <exception cref="System.ArgumentOutOfRangeException">offset or count is negative. </exception>
40574057
public override void Write(byte[] buffer, int offset, int count)
40584058
{
40594059
baseStream_.Write(buffer, offset, count);
@@ -4133,12 +4133,12 @@ public override int ReadByte()
41334133
/// <returns>
41344134
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
41354135
/// </returns>
4136-
/// <exception cref="T:System.ArgumentException">The sum of offset and count is larger than the buffer length. </exception>
4137-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4138-
/// <exception cref="T:System.NotSupportedException">The stream does not support reading. </exception>
4139-
/// <exception cref="T:System.ArgumentNullException">buffer is null. </exception>
4140-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4141-
/// <exception cref="T:System.ArgumentOutOfRangeException">offset or count is negative. </exception>
4136+
/// <exception cref="System.ArgumentException">The sum of offset and count is larger than the buffer length. </exception>
4137+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4138+
/// <exception cref="System.NotSupportedException">The stream does not support reading. </exception>
4139+
/// <exception cref="System.ArgumentNullException">buffer is null. </exception>
4140+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4141+
/// <exception cref="System.ArgumentOutOfRangeException">offset or count is negative. </exception>
41424142
public override int Read(byte[] buffer, int offset, int count)
41434143
{
41444144
lock (baseStream_)
@@ -4172,12 +4172,12 @@ public override int Read(byte[] buffer, int offset, int count)
41724172
/// <param name="buffer">An array of bytes. This method copies count bytes from buffer to the current stream.</param>
41734173
/// <param name="offset">The zero-based byte offset in buffer at which to begin copying bytes to the current stream.</param>
41744174
/// <param name="count">The number of bytes to be written to the current stream.</param>
4175-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4176-
/// <exception cref="T:System.NotSupportedException">The stream does not support writing. </exception>
4177-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4178-
/// <exception cref="T:System.ArgumentNullException">buffer is null. </exception>
4179-
/// <exception cref="T:System.ArgumentException">The sum of offset and count is greater than the buffer length. </exception>
4180-
/// <exception cref="T:System.ArgumentOutOfRangeException">offset or count is negative. </exception>
4175+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4176+
/// <exception cref="System.NotSupportedException">The stream does not support writing. </exception>
4177+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4178+
/// <exception cref="System.ArgumentNullException">buffer is null. </exception>
4179+
/// <exception cref="System.ArgumentException">The sum of offset and count is greater than the buffer length. </exception>
4180+
/// <exception cref="System.ArgumentOutOfRangeException">offset or count is negative. </exception>
41814181
public override void Write(byte[] buffer, int offset, int count)
41824182
{
41834183
throw new NotSupportedException();
@@ -4187,9 +4187,9 @@ public override void Write(byte[] buffer, int offset, int count)
41874187
/// When overridden in a derived class, sets the length of the current stream.
41884188
/// </summary>
41894189
/// <param name="value">The desired length of the current stream in bytes.</param>
4190-
/// <exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
4191-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4192-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4190+
/// <exception cref="System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
4191+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4192+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
41934193
public override void SetLength(long value)
41944194
{
41954195
throw new NotSupportedException();
@@ -4199,13 +4199,13 @@ public override void SetLength(long value)
41994199
/// When overridden in a derived class, sets the position within the current stream.
42004200
/// </summary>
42014201
/// <param name="offset">A byte offset relative to the origin parameter.</param>
4202-
/// <param name="origin">A value of type <see cref="T:System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
4202+
/// <param name="origin">A value of type <see cref="System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
42034203
/// <returns>
42044204
/// The new position within the current stream.
42054205
/// </returns>
4206-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4207-
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4208-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4206+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4207+
/// <exception cref="System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4208+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
42094209
public override long Seek(long offset, SeekOrigin origin)
42104210
{
42114211
long newPos = readPos_;
@@ -4241,7 +4241,7 @@ public override long Seek(long offset, SeekOrigin origin)
42414241
/// <summary>
42424242
/// Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
42434243
/// </summary>
4244-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4244+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
42454245
public override void Flush()
42464246
{
42474247
// Nothing to do.
@@ -4252,9 +4252,9 @@ public override void Flush()
42524252
/// </summary>
42534253
/// <value></value>
42544254
/// <returns>The current position within the stream.</returns>
4255-
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
4256-
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking. </exception>
4257-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4255+
/// <exception cref="System.IO.IOException">An I/O error occurs. </exception>
4256+
/// <exception cref="System.NotSupportedException">The stream does not support seeking. </exception>
4257+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
42584258
public override long Position
42594259
{
42604260
get { return readPos_ - start_; }
@@ -4280,8 +4280,8 @@ public override long Position
42804280
/// </summary>
42814281
/// <value></value>
42824282
/// <returns>A long value representing the length of the stream in bytes.</returns>
4283-
/// <exception cref="T:System.NotSupportedException">A class derived from Stream does not support seeking. </exception>
4284-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4283+
/// <exception cref="System.NotSupportedException">A class derived from Stream does not support seeking. </exception>
4284+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
42854285
public override long Length
42864286
{
42874287
get { return length_; }

0 commit comments

Comments
 (0)