logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1520543 - /logging/log4net/trunk/src/Appender/AppenderCollection.cs
Date Fri, 06 Sep 2013 11:13:55 GMT
Author: dpsenner
Date: Fri Sep  6 11:13:55 2013
New Revision: 1520543

URL: http://svn.apache.org/r1520543
Log:
Fixed TrimToSize() to throw a NotSupportedException when invoked on the ReadOnlyAppenderCollection

Modified:
    logging/log4net/trunk/src/Appender/AppenderCollection.cs

Modified: logging/log4net/trunk/src/Appender/AppenderCollection.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/AppenderCollection.cs?rev=1520543&r1=1520542&r2=1520543&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/AppenderCollection.cs (original)
+++ logging/log4net/trunk/src/Appender/AppenderCollection.cs Fri Sep  6 11:13:55 2013
@@ -888,6 +888,11 @@ namespace log4net.Appender
 				return m_collection.ToArray();
 			}
 
+			public override void TrimToSize()
+			{
+				throw new NotSupportedException("This is a Read Only Collection and can not be modified");
+			}
+
 			#endregion
 		}
 



Mime
View raw message