http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/SystemInfo.cs ---------------------------------------------------------------------- diff --git a/src/Util/SystemInfo.cs b/src/Util/SystemInfo.cs index c0b04f6..e8fbf71 100644 --- a/src/Util/SystemInfo.cs +++ b/src/Util/SystemInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -61,7 +61,7 @@ namespace log4net.Util /// Only static methods are exposed from this type. /// </para> /// </remarks> - private SystemInfo() + private SystemInfo() { } @@ -144,7 +144,7 @@ namespace log4net.Util /// </remarks> public static string ApplicationBaseDirectory { - get + get { #if NETCF - return System.IO.Path.GetDirectoryName(SystemInfo.EntryAssemblyLocation) + System.IO.Path.DirectorySeparatorChar; @@ -172,7 +172,7 @@ namespace log4net.Util /// </remarks> public static string ConfigurationFileLocation { - get + get { #if NETCF || NETSTANDARD1_3 return SystemInfo.EntryAssemblyLocation+".config"; @@ -193,7 +193,7 @@ namespace log4net.Util /// </remarks> public static string EntryAssemblyLocation { - get + get { #if NETCF return SystemInfo.NativeEntryAssemblyLocation; @@ -212,24 +212,24 @@ namespace log4net.Util /// <remarks> /// <para> /// On the .NET framework, the <c>AppDomain.GetCurrentThreadId</c> method - /// is used to obtain the thread ID for the current thread. This is the + /// is used to obtain the thread ID for the current thread. This is the /// operating system ID for the thread. /// </para> /// <para> - /// On the .NET Compact Framework 1.0 it is not possible to get the - /// operating system thread ID for the current thread. The native method + /// On the .NET Compact Framework 1.0 it is not possible to get the + /// operating system thread ID for the current thread. The native method /// <c>GetCurrentThreadId</c> is implemented inline in a header file /// and cannot be called. /// </para> /// <para> /// On the .NET Framework 2.0 the <c>Thread.ManagedThreadId</c> is used as this - /// gives a stable id unrelated to the operating system thread ID which may + /// gives a stable id unrelated to the operating system thread ID which may /// change if the runtime is using fibers. /// </para> /// </remarks> public static int CurrentThreadId { - get + get { #if NETCF_1_0 return System.Threading.Thread.CurrentThread.GetHashCode(); @@ -347,7 +347,7 @@ namespace log4net.Util } catch(System.Security.SecurityException) { - // This security exception will occur if the caller does not have + // This security exception will occur if the caller does not have // some undefined set of SecurityPermission flags. LogLog.Debug(declaringType, "Security exception while trying to get current domain friendly name. Error Ignored."); } @@ -541,8 +541,8 @@ namespace log4net.Util } /// <summary> - /// Gets the fully qualified name of the <see cref="Type" />, including - /// the name of the assembly from which the <see cref="Type" /> was + /// Gets the fully qualified name of the <see cref="Type" />, including + /// the name of the assembly from which the <see cref="Type" /> was /// loaded. /// </summary> /// <param name="type">The <see cref="Type" /> to get the fully qualified name for.</param> @@ -571,8 +571,8 @@ namespace log4net.Util /// <returns>The short name of the <see cref="Assembly" />.</returns> /// <remarks> /// <para> - /// The short name of the assembly is the <see cref="Assembly.FullName" /> - /// without the version, culture, or public key. i.e. it is just the + /// The short name of the assembly is the <see cref="Assembly.FullName" /> + /// without the version, culture, or public key. i.e. it is just the /// assembly's file name without the extension. /// </para> /// <para> @@ -582,7 +582,7 @@ namespace log4net.Util /// <para> /// Because of a FileIOPermission security demand we cannot do /// the obvious Assembly.GetName().Name. We are allowed to get - /// the <see cref="Assembly.FullName" /> of the assembly so we + /// the <see cref="Assembly.FullName" /> of the assembly so we /// start from there and strip out just the assembly name. /// </para> /// </remarks> @@ -596,8 +596,8 @@ namespace log4net.Util } return name.Trim(); - // TODO: Do we need to unescape the assembly name string? - // Doc says '\' is an escape char but has this already been + // TODO: Do we need to unescape the assembly name string? + // Doc says '\' is an escape char but has this already been // done by the string loader? } @@ -646,13 +646,13 @@ namespace log4net.Util /// <returns>The type loaded or <c>null</c> if it could not be loaded.</returns> /// <remarks> /// <para> - /// If the type name is fully qualified, i.e. if contains an assembly name in - /// the type name, the type will be loaded from the system using + /// If the type name is fully qualified, i.e. if contains an assembly name in + /// the type name, the type will be loaded from the system using /// <see cref="M:Type.GetType(string,bool)"/>. /// </para> /// <para> /// If the type name is not fully qualified, it will be loaded from the assembly - /// containing the specified relative type. If the type is not found in the assembly + /// containing the specified relative type. If the type is not found in the assembly /// then all the loaded assemblies will be searched for the type. /// </para> /// </remarks> @@ -672,16 +672,16 @@ namespace log4net.Util /// <param name="typeName">The name of the type to load.</param> /// <param name="throwOnError">Flag set to <c>true</c> to throw an exception if the type cannot be loaded.</param> /// <param name="ignoreCase"><c>true</c> to ignore the case of the type name; otherwise, <c>false</c></param> - /// <returns>The type loaded or <c>null</c> if it could not be loaded.</returns> + /// <returns>The type loaded or <c>null</c> if it could not be loaded.</returns> /// <remarks> /// <para> - /// If the type name is fully qualified, i.e. if contains an assembly name in - /// the type name, the type will be loaded from the system using + /// If the type name is fully qualified, i.e. if contains an assembly name in + /// the type name, the type will be loaded from the system using /// <see cref="M:Type.GetType(string,bool)"/>. /// </para> /// <para> /// If the type name is not fully qualified it will be loaded from the - /// assembly that is directly calling this method. If the type is not found + /// assembly that is directly calling this method. If the type is not found /// in the assembly then all the loaded assemblies will be searched for the type. /// </para> /// </remarks> @@ -701,13 +701,13 @@ namespace log4net.Util /// <returns>The type loaded or <c>null</c> if it could not be loaded.</returns> /// <remarks> /// <para> - /// If the type name is fully qualified, i.e. if contains an assembly name in - /// the type name, the type will be loaded from the system using + /// If the type name is fully qualified, i.e. if contains an assembly name in + /// the type name, the type will be loaded from the system using /// <see cref="M:Type.GetType(string,bool)"/>. /// </para> /// <para> /// If the type name is not fully qualified it will be loaded from the specified - /// assembly. If the type is not found in the assembly then all the loaded assemblies + /// assembly. If the type is not found in the assembly then all the loaded assemblies /// will be searched for the type. /// </para> /// </remarks> @@ -745,7 +745,7 @@ namespace log4net.Util { Type fallback = null; // Search the loaded assemblies for the type - foreach (Assembly assembly in loadedAssemblies) + foreach (Assembly assembly in loadedAssemblies) { Type t = assembly.GetType(typeName, false, ignoreCase); if (t != null) @@ -819,8 +819,8 @@ namespace log4net.Util /// <returns>the ArgumentOutOfRangeException object</returns> /// <remarks> /// <para> - /// Create a new instance of the <see cref="ArgumentOutOfRangeException"/> class - /// with a specified error message, the parameter name, and the value + /// Create a new instance of the <see cref="ArgumentOutOfRangeException"/> class + /// with a specified error message, the parameter name, and the value /// of the argument. /// </para> /// <para> @@ -967,7 +967,7 @@ namespace log4net.Util // Initialise out param val = 0; - try + try { double doubleVal; if (Double.TryParse(s, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out doubleVal)) @@ -1024,7 +1024,7 @@ namespace log4net.Util /// <para> /// Converts the path specified to a fully /// qualified path. If the path is relative it is - /// taken as relative from the application base + /// taken as relative from the application base /// directory. /// </para> /// <para> @@ -1066,7 +1066,7 @@ namespace log4net.Util } /// <summary> - /// Creates a new case-insensitive instance of the <see cref="Hashtable"/> class with the default initial capacity. + /// Creates a new case-insensitive instance of the <see cref="Hashtable"/> class with the default initial capacity. /// </summary> /// <returns>A new case-insensitive instance of the <see cref="Hashtable"/> class with the default initial capacity</returns> /// <remarks> @@ -1113,23 +1113,23 @@ namespace log4net.Util #region Private Static Methods #if NETCF - private static string NativeEntryAssemblyLocation + private static string NativeEntryAssemblyLocation { - get + get { StringBuilder moduleName = null; IntPtr moduleHandle = GetModuleHandle(IntPtr.Zero); - if (moduleHandle != IntPtr.Zero) + if (moduleHandle != IntPtr.Zero) { moduleName = new StringBuilder(255); - if (GetModuleFileName(moduleHandle, moduleName, moduleName.Capacity) == 0) + if (GetModuleFileName(moduleHandle, moduleName, moduleName.Capacity) == 0) { throw new NotSupportedException(NativeError.GetLastError().ToString()); } - } - else + } + else { throw new NotSupportedException(NativeError.GetLastError().ToString()); } @@ -1252,16 +1252,16 @@ namespace log4net.Util public const uint PROV_RSA_FULL = 1; public const uint CRYPT_VERIFYCONTEXT = 0xf0000000; - [DllImport("CoreDll.dll")] + [DllImport("CoreDll.dll")] public static extern bool CryptAcquireContext( ref IntPtr phProv, string pszContainer, string pszProvider, uint dwProvType, uint dwFlags); - [DllImport("CoreDll.dll")] - public static extern bool CryptReleaseContext( + [DllImport("CoreDll.dll")] + public static extern bool CryptReleaseContext( IntPtr hProv, uint dwFlags); - [DllImport("CoreDll.dll")] + [DllImport("CoreDll.dll")] public static extern bool CryptGenRandom( IntPtr hProv, int dwLen, byte[] pbBuffer); } @@ -1285,7 +1285,7 @@ namespace log4net.Util byte[] bits = new byte[Const.ByteArraySize]; // get crypto provider handle - if (!WinApi.CryptAcquireContext(ref hCryptProv, null, null, + if (!WinApi.CryptAcquireContext(ref hCryptProv, null, null, WinApi.PROV_RSA_FULL, WinApi.CRYPT_VERIFYCONTEXT)) { throw new SystemException( @@ -1301,12 +1301,12 @@ namespace log4net.Util // set the variant bits[Const.VariantByte] &= Const.VariantByteMask; - bits[Const.VariantByte] |= + bits[Const.VariantByte] |= ((int)GuidVariant.Standard << Const.VariantByteShift); // set the version bits[Const.VersionByte] &= Const.VersionByteMask; - bits[Const.VersionByte] |= + bits[Const.VersionByte] |= ((int)GuidVersion.Random << Const.VersionByteShift); // create the new System.Guid object
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/SystemStringFormat.cs ---------------------------------------------------------------------- diff --git a/src/Util/SystemStringFormat.cs b/src/Util/SystemStringFormat.cs index a852f39..760ca32 100644 --- a/src/Util/SystemStringFormat.cs +++ b/src/Util/SystemStringFormat.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -68,7 +68,7 @@ namespace log4net.Util #region StringFormat /// <summary> - /// Replaces the format item in a specified <see cref="System.String"/> with the text equivalent + /// Replaces the format item in a specified <see cref="System.String"/> with the text equivalent /// of the value of a corresponding <see cref="System.Object"/> instance in a specified array. /// A specified parameter supplies culture-specific formatting information. /// </summary> @@ -76,7 +76,7 @@ namespace log4net.Util /// <param name="format">A <see cref="System.String"/> containing zero or more format items.</param> /// <param name="args">An <see cref="System.Object"/> array containing zero or more objects to format.</param> /// <returns> - /// A copy of format in which the format items have been replaced by the <see cref="System.String"/> + /// A copy of format in which the format items have been replaced by the <see cref="System.String"/> /// equivalent of the corresponding instances of <see cref="System.Object"/> in args. /// </returns> /// <remarks> http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TextWriterAdapter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TextWriterAdapter.cs b/src/Util/TextWriterAdapter.cs index b68eae8..4f5af8d 100644 --- a/src/Util/TextWriterAdapter.cs +++ b/src/Util/TextWriterAdapter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -79,7 +79,7 @@ namespace log4net.Util /// Gets or sets the underlying <see cref="TextWriter" />. /// </para> /// </remarks> - protected TextWriter Writer + protected TextWriter Writer { get { return m_writer; } set { m_writer = value; } @@ -88,7 +88,7 @@ namespace log4net.Util #endregion Protected Instance Properties #region Public Properties - + /// <summary> /// The Encoding in which the output is written /// </summary> @@ -100,7 +100,7 @@ namespace log4net.Util /// The Encoding in which the output is written /// </para> /// </remarks> - override public Encoding Encoding + override public Encoding Encoding { get { return m_writer.Encoding; } } @@ -116,7 +116,7 @@ namespace log4net.Util /// Gets an object that controls formatting /// </para> /// </remarks> - override public IFormatProvider FormatProvider + override public IFormatProvider FormatProvider { get { return m_writer.FormatProvider; } } @@ -132,7 +132,7 @@ namespace log4net.Util /// Gets or sets the line terminator string used by the TextWriter /// </para> /// </remarks> - override public String NewLine + override public String NewLine { get { return m_writer.NewLine; } set { m_writer.NewLine = value; } @@ -155,7 +155,7 @@ namespace log4net.Util m_writer.Dispose(); } #else - override public void Close() + override public void Close() { m_writer.Close(); } @@ -183,11 +183,11 @@ namespace log4net.Util /// </summary> /// <remarks> /// <para> - /// Clears all buffers for the writer and causes any buffered data to be written + /// Clears all buffers for the writer and causes any buffered data to be written /// to the underlying device /// </para> /// </remarks> - override public void Flush() + override public void Flush() { m_writer.Flush(); } @@ -201,11 +201,11 @@ namespace log4net.Util /// Writes a character to the wrapped TextWriter /// </para> /// </remarks> - override public void Write(char value) + override public void Write(char value) { m_writer.Write(value); } - + /// <summary> /// Writes a character buffer to the wrapped TextWriter /// </summary> @@ -217,11 +217,11 @@ namespace log4net.Util /// Writes a character buffer to the wrapped TextWriter /// </para> /// </remarks> - override public void Write(char[] buffer, int index, int count) + override public void Write(char[] buffer, int index, int count) { m_writer.Write(buffer, index, count); } - + /// <summary> /// Writes a string to the wrapped TextWriter /// </summary> @@ -231,7 +231,7 @@ namespace log4net.Util /// Writes a string to the wrapped TextWriter /// </para> /// </remarks> - override public void Write(String value) + override public void Write(String value) { m_writer.Write(value); } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/ThreadContextProperties.cs ---------------------------------------------------------------------- diff --git a/src/Util/ThreadContextProperties.cs b/src/Util/ThreadContextProperties.cs index 1706085..f55528b 100644 --- a/src/Util/ThreadContextProperties.cs +++ b/src/Util/ThreadContextProperties.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -175,7 +175,7 @@ namespace log4net.Util /// <remarks> /// <para> /// The collection returned is only to be used on the calling thread. If the - /// caller needs to share the collection between different threads then the + /// caller needs to share the collection between different threads then the /// caller must clone the collection before doing so. /// </para> /// </remarks> http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/ThreadContextStack.cs ---------------------------------------------------------------------- diff --git a/src/Util/ThreadContextStack.cs b/src/Util/ThreadContextStack.cs index d723dca..82f154e 100644 --- a/src/Util/ThreadContextStack.cs +++ b/src/Util/ThreadContextStack.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -54,7 +54,7 @@ namespace log4net.Util /// </summary> /// <remarks> /// <para> - /// Initializes a new instance of the <see cref="ThreadContextStack" /> class. + /// Initializes a new instance of the <see cref="ThreadContextStack" /> class. /// </para> /// </remarks> internal ThreadContextStack() @@ -98,11 +98,11 @@ namespace log4net.Util /// You do not need to use this method if you always guarantee to call /// the <see cref="IDisposable.Dispose"/> method of the <see cref="IDisposable"/> /// returned from <see cref="Push"/> even in exceptional circumstances, - /// for example by using the <c>using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message"))</c> + /// for example by using the <c>using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message"))</c> /// syntax. /// </para> /// </remarks> - public void Clear() + public void Clear() { m_stack.Clear(); } @@ -118,7 +118,7 @@ namespace log4net.Util /// empty string (not <see langword="null"/>) is returned. /// </para> /// </remarks> - public string Pop() + public string Pop() { Stack stack = m_stack; if (stack.Count > 0) @@ -151,7 +151,7 @@ namespace log4net.Util /// } /// </code> /// </example> - public IDisposable Push(string message) + public IDisposable Push(string message) { Stack stack = m_stack; stack.Push(new StackFrame(message, (stack.Count>0) ? (StackFrame)stack.Peek() : null)); @@ -167,7 +167,7 @@ namespace log4net.Util /// Gets the current context information for this stack. /// </summary> /// <returns>The current context information.</returns> - internal string GetFullMessage() + internal string GetFullMessage() { Stack stack = m_stack; if (stack.Count > 0) @@ -183,7 +183,7 @@ namespace log4net.Util /// <value>The internal storage stack</value> /// <remarks> /// <para> - /// This property is provided only to support backward compatability + /// This property is provided only to support backward compatability /// of the <see cref="NDC"/>. Tytpically the internal stack should not /// be modified. /// </para> @@ -193,7 +193,7 @@ namespace log4net.Util get { return m_stack; } set { m_stack = value; } } - + #endregion Internal Methods /// <summary> @@ -232,14 +232,14 @@ namespace log4net.Util /// Inner class used to represent a single context frame in the stack. /// </para> /// </remarks> - private sealed class StackFrame + private sealed class StackFrame { #region Private Instance Fields private readonly string m_message; private readonly StackFrame m_parent; private string m_fullMessage = null; - + #endregion #region Internal Instance Constructors @@ -255,15 +255,15 @@ namespace log4net.Util /// with the specified message and parent context. /// </para> /// </remarks> - internal StackFrame(string message, StackFrame parent) + internal StackFrame(string message, StackFrame parent) { m_message = message; m_parent = parent; - if (parent == null) + if (parent == null) { m_fullMessage = message; - } + } } #endregion Internal Instance Constructors @@ -297,13 +297,13 @@ namespace log4net.Util /// </remarks> internal string FullMessage { - get + get { if (m_fullMessage == null && m_parent != null) { m_fullMessage = string.Concat(m_parent.FullMessage, " ", m_message); } - return m_fullMessage; + return m_fullMessage; } } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/ThreadContextStacks.cs ---------------------------------------------------------------------- diff --git a/src/Util/ThreadContextStacks.cs b/src/Util/ThreadContextStacks.cs index 3fffb05..c127757 100644 --- a/src/Util/ThreadContextStacks.cs +++ b/src/Util/ThreadContextStacks.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -67,7 +67,7 @@ namespace log4net.Util /// </remarks> public ThreadContextStack this[string key] { - get + get { ThreadContextStack stack = null; http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/Transform.cs ---------------------------------------------------------------------- diff --git a/src/Util/Transform.cs b/src/Util/Transform.cs index 7e8f408..dafb223 100644 --- a/src/Util/Transform.cs +++ b/src/Util/Transform.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -39,7 +39,7 @@ namespace log4net.Util #region Private Instance Constructors /// <summary> - /// Initializes a new instance of the <see cref="Transform" /> class. + /// Initializes a new instance of the <see cref="Transform" /> class. /// </summary> /// <remarks> /// <para> @@ -84,15 +84,15 @@ namespace log4net.Util // Write string using CDATA section int end = stringData.IndexOf(CDATA_END); - - if (end < 0) + + if (end < 0) { writer.WriteCData(stringData); } else { int start = 0; - while (end > -1) + while (end > -1) { writer.WriteCData(stringData.Substring(start, end - start)); if (end == stringData.Length - 3) @@ -108,7 +108,7 @@ namespace log4net.Util end = stringData.IndexOf(CDATA_END, start); } } - + if (start < stringData.Length) { writer.WriteCData(stringData.Substring(start)); http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/BooleanConverter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/BooleanConverter.cs b/src/Util/TypeConverters/BooleanConverter.cs index 7853c45..560e81c 100644 --- a/src/Util/TypeConverters/BooleanConverter.cs +++ b/src/Util/TypeConverters/BooleanConverter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/ConversionNotSupportedException.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/ConversionNotSupportedException.cs b/src/Util/TypeConverters/ConversionNotSupportedException.cs index 86ae9fc..b9a3da6 100644 --- a/src/Util/TypeConverters/ConversionNotSupportedException.cs +++ b/src/Util/TypeConverters/ConversionNotSupportedException.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -42,7 +42,7 @@ namespace log4net.Util.TypeConverters #if NETSTANDARD1_3 public class ConversionNotSupportedException : Exception #else - public class ConversionNotSupportedException : ApplicationException + public class ConversionNotSupportedException : ApplicationException #endif { #region Public Instance Constructors @@ -69,10 +69,10 @@ namespace log4net.Util.TypeConverters /// with the specified message. /// </para> /// </remarks> - public ConversionNotSupportedException(String message) : base(message) + public ConversionNotSupportedException(String message) : base(message) { } - + /// <summary> /// Constructor /// </summary> @@ -84,7 +84,7 @@ namespace log4net.Util.TypeConverters /// with the specified message and inner exception. /// </para> /// </remarks> - public ConversionNotSupportedException(String message, Exception innerException) : base(message, innerException) + public ConversionNotSupportedException(String message, Exception innerException) : base(message, innerException) { } @@ -100,11 +100,11 @@ namespace log4net.Util.TypeConverters /// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param> /// <remarks> /// <para> - /// Initializes a new instance of the <see cref="ConversionNotSupportedException" /> class + /// Initializes a new instance of the <see cref="ConversionNotSupportedException" /> class /// with serialized data. /// </para> /// </remarks> - protected ConversionNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context) + protected ConversionNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endif http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/ConverterRegistry.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/ConverterRegistry.cs b/src/Util/TypeConverters/ConverterRegistry.cs index 0ddfb12..78f7b4a 100644 --- a/src/Util/TypeConverters/ConverterRegistry.cs +++ b/src/Util/TypeConverters/ConverterRegistry.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -36,7 +36,7 @@ namespace log4net.Util.TypeConverters /// types. /// </para> /// <para> - /// Use the <see cref="M:AddConverter(Type, object)"/> and + /// Use the <see cref="M:AddConverter(Type, object)"/> and /// <see cref="M:AddConverter(Type, Type)"/> methods to register new converters. /// The <see cref="GetConvertTo"/> and <see cref="GetConvertFrom"/> methods /// lookup appropriate converters to use. @@ -56,7 +56,7 @@ namespace log4net.Util.TypeConverters /// <remarks> /// Initializes a new instance of the <see cref="ConverterRegistry" /> class. /// </remarks> - private ConverterRegistry() + private ConverterRegistry() { } @@ -129,7 +129,7 @@ namespace log4net.Util.TypeConverters /// <param name="sourceType">The type being converted from.</param> /// <param name="destinationType">The type being converted to.</param> /// <returns> - /// The type converter instance to use for type conversions or <c>null</c> + /// The type converter instance to use for type conversions or <c>null</c> /// if no type converter is found. /// </returns> /// <remarks> @@ -170,7 +170,7 @@ namespace log4net.Util.TypeConverters /// </summary> /// <param name="destinationType">The type being converted to.</param> /// <returns> - /// The type converter instance to use for type conversions or <c>null</c> + /// The type converter instance to use for type conversions or <c>null</c> /// if no type converter is found. /// </returns> /// <remarks> @@ -203,14 +203,14 @@ namespace log4net.Util.TypeConverters return converter; } } - + /// <summary> - /// Lookups the type converter to use as specified by the attributes on the + /// Lookups the type converter to use as specified by the attributes on the /// destination type. /// </summary> /// <param name="destinationType">The type being converted to.</param> /// <returns> - /// The type converter instance to use for type conversions or <c>null</c> + /// The type converter instance to use for type conversions or <c>null</c> /// if no type converter is found. /// </returns> private static object GetConverterFromAttribute(Type destinationType) @@ -236,13 +236,13 @@ namespace log4net.Util.TypeConverters /// </summary> /// <param name="converterType">The type of the type converter.</param> /// <returns> - /// The type converter instance to use for type conversions or <c>null</c> + /// The type converter instance to use for type conversions or <c>null</c> /// if no type converter is found. /// </returns> /// <remarks> /// <para> - /// The type specified for the type converter must implement - /// the <see cref="IConvertFrom"/> or <see cref="IConvertTo"/> interfaces + /// The type specified for the type converter must implement + /// the <see cref="IConvertFrom"/> or <see cref="IConvertTo"/> interfaces /// and must have a public default (no argument) constructor. /// </para> /// </remarks> http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/EncodingConverter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/EncodingConverter.cs b/src/Util/TypeConverters/EncodingConverter.cs index 93c9eac..aeacc44 100644 --- a/src/Util/TypeConverters/EncodingConverter.cs +++ b/src/Util/TypeConverters/EncodingConverter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -35,7 +35,7 @@ namespace log4net.Util.TypeConverters /// <seealso cref="IConvertTo"/> /// <author>Nicko Cadell</author> /// <author>Gert Driesen</author> - internal class EncodingConverter : IConvertFrom + internal class EncodingConverter : IConvertFrom { #region Implementation of IConvertFrom @@ -50,7 +50,7 @@ namespace log4net.Util.TypeConverters /// the <see cref="String"/> type. /// </para> /// </remarks> - public bool CanConvertFrom(Type sourceType) + public bool CanConvertFrom(Type sourceType) { return (sourceType == typeof(string)); } @@ -62,7 +62,7 @@ namespace log4net.Util.TypeConverters /// <returns>the encoding</returns> /// <remarks> /// <para> - /// Uses the <see cref="M:Encoding.GetEncoding(string)"/> method to + /// Uses the <see cref="M:Encoding.GetEncoding(string)"/> method to /// convert the <see cref="String"/> argument to an <see cref="Encoding"/>. /// </para> /// </remarks> @@ -71,10 +71,10 @@ namespace log4net.Util.TypeConverters /// target type. To check for this condition use the <see cref="CanConvertFrom"/> /// method. /// </exception> - public object ConvertFrom(object source) + public object ConvertFrom(object source) { string str = source as string; - if (str != null) + if (str != null) { return Encoding.GetEncoding(str); } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/IConvertFrom.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/IConvertFrom.cs b/src/Util/TypeConverters/IConvertFrom.cs index 1dbd473..b75097f 100644 --- a/src/Util/TypeConverters/IConvertFrom.cs +++ b/src/Util/TypeConverters/IConvertFrom.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/IConvertTo.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/IConvertTo.cs b/src/Util/TypeConverters/IConvertTo.cs index e986372..7bf3bb9 100644 --- a/src/Util/TypeConverters/IConvertTo.cs +++ b/src/Util/TypeConverters/IConvertTo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/IPAddressConverter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/IPAddressConverter.cs b/src/Util/TypeConverters/IPAddressConverter.cs index d9cbf32..e904de3 100644 --- a/src/Util/TypeConverters/IPAddressConverter.cs +++ b/src/Util/TypeConverters/IPAddressConverter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -33,7 +33,7 @@ namespace log4net.Util.TypeConverters /// <seealso cref="ConverterRegistry"/> /// <seealso cref="IConvertFrom"/> /// <author>Nicko Cadell</author> - internal class IPAddressConverter : IConvertFrom + internal class IPAddressConverter : IConvertFrom { #region Implementation of IConvertFrom @@ -48,7 +48,7 @@ namespace log4net.Util.TypeConverters /// the <see cref="String"/> type. /// </para> /// </remarks> - public bool CanConvertFrom(Type sourceType) + public bool CanConvertFrom(Type sourceType) { return (sourceType == typeof(string)); } @@ -70,10 +70,10 @@ namespace log4net.Util.TypeConverters /// target type. To check for this condition use the <see cref="CanConvertFrom"/> /// method. /// </exception> - public object ConvertFrom(object source) + public object ConvertFrom(object source) { string str = source as string; - if (str != null && str.Length > 0) + if (str != null && str.Length > 0) { try { @@ -88,11 +88,11 @@ namespace log4net.Util.TypeConverters } #endif - // Try to resolve via DNS. This is a blocking call. + // Try to resolve via DNS. This is a blocking call. // GetHostEntry works with either an IPAddress string or a host name IPHostEntry host = Dns.GetHostEntry(str); - if (host != null && - host.AddressList != null && + if (host != null && + host.AddressList != null && host.AddressList.Length > 0 && host.AddressList[0] != null) { @@ -121,8 +121,8 @@ namespace log4net.Util.TypeConverters #else IPHostEntry host = Dns.GetHostByName(str); #endif - if (host != null && - host.AddressList != null && + if (host != null && + host.AddressList != null && host.AddressList.Length > 0 && host.AddressList[0] != null) { http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/PatternLayoutConverter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/PatternLayoutConverter.cs b/src/Util/TypeConverters/PatternLayoutConverter.cs index c9942b2..992e3d9 100644 --- a/src/Util/TypeConverters/PatternLayoutConverter.cs +++ b/src/Util/TypeConverters/PatternLayoutConverter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -32,7 +32,7 @@ namespace log4net.Util.TypeConverters /// Supports conversion from string to <see cref="PatternLayout"/> type. /// </para> /// <para> - /// The string is used as the <see cref="PatternLayout.ConversionPattern"/> + /// The string is used as the <see cref="PatternLayout.ConversionPattern"/> /// of the <see cref="PatternLayout"/>. /// </para> /// </remarks> @@ -77,7 +77,7 @@ namespace log4net.Util.TypeConverters /// target type. To check for this condition use the <see cref="CanConvertFrom"/> /// method. /// </exception> - public object ConvertFrom(object source) + public object ConvertFrom(object source) { string str = source as string; if (str != null) http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/PatternStringConverter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/PatternStringConverter.cs b/src/Util/TypeConverters/PatternStringConverter.cs index 723cc25..0b05bba 100644 --- a/src/Util/TypeConverters/PatternStringConverter.cs +++ b/src/Util/TypeConverters/PatternStringConverter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -32,11 +32,11 @@ namespace log4net.Util.TypeConverters /// </summary> /// <remarks> /// <para> - /// Supports conversion from string to <see cref="PatternString"/> type, + /// Supports conversion from string to <see cref="PatternString"/> type, /// and from a <see cref="PatternString"/> type to a string. /// </para> /// <para> - /// The string is used as the <see cref="PatternString.ConversionPattern"/> + /// The string is used as the <see cref="PatternString.ConversionPattern"/> /// of the <see cref="PatternString"/>. /// </para> /// </remarks> @@ -78,7 +78,7 @@ namespace log4net.Util.TypeConverters /// </remarks> /// <exception cref="ConversionNotSupportedException"> /// The <paramref name="source"/> object cannot be converted to the - /// <paramref name="targetType"/>. To check for this condition use the + /// <paramref name="targetType"/>. To check for this condition use the /// <see cref="CanConvertTo"/> method. /// </exception> public object ConvertTo(object source, Type targetType) @@ -128,7 +128,7 @@ namespace log4net.Util.TypeConverters /// target type. To check for this condition use the <see cref="CanConvertFrom"/> /// method. /// </exception> - public object ConvertFrom(object source) + public object ConvertFrom(object source) { string str = source as string; if (str != null) http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/TypeConverter.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/TypeConverter.cs b/src/Util/TypeConverters/TypeConverter.cs index 3a6d6a9..3f6885a 100644 --- a/src/Util/TypeConverters/TypeConverter.cs +++ b/src/Util/TypeConverters/TypeConverter.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -37,7 +37,7 @@ namespace log4net.Util.TypeConverters /// <seealso cref="IConvertFrom"/> /// <seealso cref="IConvertTo"/> /// <author>Nicko Cadell</author> - internal class TypeConverter : IConvertFrom + internal class TypeConverter : IConvertFrom { #region Implementation of IConvertFrom @@ -52,7 +52,7 @@ namespace log4net.Util.TypeConverters /// the <see cref="String"/> type. /// </para> /// </remarks> - public bool CanConvertFrom(Type sourceType) + public bool CanConvertFrom(Type sourceType) { return (sourceType == typeof(string)); } @@ -75,7 +75,7 @@ namespace log4net.Util.TypeConverters /// target type. To check for this condition use the <see cref="CanConvertFrom"/> /// method. /// </exception> - public object ConvertFrom(object source) + public object ConvertFrom(object source) { string str = source as string; if (str != null) http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/TypeConverters/TypeConverterAttribute.cs ---------------------------------------------------------------------- diff --git a/src/Util/TypeConverters/TypeConverterAttribute.cs b/src/Util/TypeConverters/TypeConverterAttribute.cs index 196c5a8..5237f47 100644 --- a/src/Util/TypeConverters/TypeConverterAttribute.cs +++ b/src/Util/TypeConverters/TypeConverterAttribute.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -69,7 +69,7 @@ namespace log4net.Util.TypeConverters /// <param name="typeName">The string type name of the type converter</param> /// <remarks> /// <para> - /// The type specified must implement the <see cref="IConvertFrom"/> + /// The type specified must implement the <see cref="IConvertFrom"/> /// or the <see cref="IConvertTo"/> interfaces. /// </para> /// </remarks> @@ -84,7 +84,7 @@ namespace log4net.Util.TypeConverters /// <param name="converterType">The type of the type converter</param> /// <remarks> /// <para> - /// The type specified must implement the <see cref="IConvertFrom"/> + /// The type specified must implement the <see cref="IConvertFrom"/> /// or the <see cref="IConvertTo"/> interfaces. /// </para> /// </remarks> @@ -96,14 +96,14 @@ namespace log4net.Util.TypeConverters #endregion /// <summary> - /// The string type name of the type converter + /// The string type name of the type converter /// </summary> /// <value> - /// The string type name of the type converter + /// The string type name of the type converter /// </value> /// <remarks> /// <para> - /// The type specified must implement the <see cref="IConvertFrom"/> + /// The type specified must implement the <see cref="IConvertFrom"/> /// or the <see cref="IConvertTo"/> interfaces. /// </para> /// </remarks> http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/src/Util/WindowsSecurityContext.cs ---------------------------------------------------------------------- diff --git a/src/Util/WindowsSecurityContext.cs b/src/Util/WindowsSecurityContext.cs index 0e902fa..f81f765 100644 --- a/src/Util/WindowsSecurityContext.cs +++ b/src/Util/WindowsSecurityContext.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -18,7 +18,7 @@ #endregion // .NET Compact Framework 1.0 has no support for WindowsIdentity -#if !NETCF +#if !NETCF // MONO 1.0 has no support for Win32 Logon APIs #if !MONO // SSCLI 1.0 has no support for Win32 Logon APIs @@ -44,7 +44,7 @@ namespace log4net.Util /// </para> /// <para> /// How the impersonation is done depends on the value of <see cref="Impersonate"/>. - /// This allows the context to either impersonate a set of user credentials specified + /// This allows the context to either impersonate a set of user credentials specified /// using username, domain name and password or to revert to the process credentials. /// </para> /// </remarks> @@ -124,7 +124,7 @@ namespace log4net.Util /// </para> /// <para> /// When the mode is set to <see cref="ImpersonationMode.Process"/> - /// no other properties need to be set. If the calling thread is + /// no other properties need to be set. If the calling thread is /// impersonating then it will be reverted back to the process credentials. /// </para> /// </remarks> @@ -201,13 +201,13 @@ namespace log4net.Util /// <remarks> /// <para> /// This is part of the <see cref="IOptionHandler"/> delayed object - /// activation scheme. The <see cref="ActivateOptions"/> method must + /// activation scheme. The <see cref="ActivateOptions"/> method must /// be called on this object after the configuration properties have /// been set. Until <see cref="ActivateOptions"/> is called this - /// object is in an undefined state and must not be used. + /// object is in an undefined state and must not be used. /// </para> /// <para> - /// If any of the configuration properties are modified then + /// If any of the configuration properties are modified then /// <see cref="ActivateOptions"/> must be called again. /// </para> /// <para> @@ -215,7 +215,7 @@ namespace log4net.Util /// capture a primary token for impersonation. /// </para> /// </remarks> - /// <exception cref="ArgumentNullException">The required <see cref="UserName" />, + /// <exception cref="ArgumentNullException">The required <see cref="UserName" />, /// <see cref="DomainName" /> or <see cref="Password" /> properties were not specified.</exception> public void ActivateOptions() { @@ -241,7 +241,7 @@ namespace log4net.Util /// <remarks> /// <para> /// Depending on the <see cref="Credentials"/> property either - /// impersonate a user using credentials supplied or revert + /// impersonate a user using credentials supplied or revert /// to the process credentials. /// </para> /// </remarks> @@ -308,7 +308,7 @@ namespace log4net.Util WindowsIdentity identity = new WindowsIdentity(dupeTokenHandle); // Free the tokens. - if (dupeTokenHandle != IntPtr.Zero) + if (dupeTokenHandle != IntPtr.Zero) { CloseHandle(dupeTokenHandle); } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/AdoNet/Log4NetConnection.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/AdoNet/Log4NetConnection.cs b/tests/src/Appender/AdoNet/Log4NetConnection.cs index 33bbcce..4fd4507 100644 --- a/tests/src/Appender/AdoNet/Log4NetConnection.cs +++ b/tests/src/Appender/AdoNet/Log4NetConnection.cs @@ -45,7 +45,7 @@ namespace log4net.Tests.Appender.AdoNet public ConnectionState State { - get + get { return open ? ConnectionState.Open : ConnectionState.Closed; } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/AdoNetAppenderTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/AdoNetAppenderTest.cs b/tests/src/Appender/AdoNetAppenderTest.cs index 76f44f7..a536514 100644 --- a/tests/src/Appender/AdoNetAppenderTest.cs +++ b/tests/src/Appender/AdoNetAppenderTest.cs @@ -136,7 +136,7 @@ namespace log4net.Tests.Appender <root> <level value=""ALL"" /> <appender-ref ref=""AdoNetAppender"" /> - </root> + </root> </log4net>"); #endregion @@ -146,11 +146,11 @@ namespace log4net.Tests.Appender log.Debug("Message"); IDbCommand command = Log4NetCommand.MostRecentInstance; - + Assert.AreEqual( "INSERT INTO Log ([Date],[Thread],[Level],[Logger],[Message],[Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)", command.CommandText); - + Assert.AreEqual(6, command.Parameters.Count); IDbDataParameter param = (IDbDataParameter)command.Parameters["@message"]; @@ -225,7 +225,7 @@ namespace log4net.Tests.Appender <root> <level value=""ALL"" /> <appender-ref ref=""AdoNetAppender"" /> - </root> + </root> </log4net>"); #endregion @@ -278,19 +278,19 @@ namespace log4net.Tests.Appender <layout type="" log4net.Layout.RawPropertyLayout""> <key value=""ProductId"" /> </layout> - </parameter> + </parameter> </appender> <root> <level value=""ALL"" /> <appender-ref ref=""AdoNetAppender"" /> - </root> + </root> </log4net>"); #endregion ILoggerRepository rep = LogManager.CreateRepository(Guid.NewGuid().ToString()); XmlConfigurator.Configure(rep, log4netConfig["log4net"]); ILog log = LogManager.GetLogger(rep.Name, "NullPropertyXmlConfig"); - + log.Debug("Message"); IDbCommand command = Log4NetCommand.MostRecentInstance; IDbDataParameter param = (IDbDataParameter)command.Parameters["@productId"]; @@ -319,7 +319,7 @@ namespace log4net.Tests.Appender ILoggerRepository rep = LogManager.CreateRepository(Guid.NewGuid().ToString()); BasicConfigurator.Configure(rep, appender); ILog log = LogManager.GetLogger(rep.Name, "NullPropertyProgmaticConfig"); - + log.Debug("Message"); IDbCommand command = Log4NetCommand.MostRecentInstance; IDbDataParameter param = (IDbDataParameter)command.Parameters["@productId"]; http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/AppenderCollectionTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/AppenderCollectionTest.cs b/tests/src/Appender/AppenderCollectionTest.cs index e22c364..4abbc30 100644 --- a/tests/src/Appender/AppenderCollectionTest.cs +++ b/tests/src/Appender/AppenderCollectionTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/BufferingAppenderTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/BufferingAppenderTest.cs b/tests/src/Appender/BufferingAppenderTest.cs index ca65663..32c003b 100644 --- a/tests/src/Appender/BufferingAppenderTest.cs +++ b/tests/src/Appender/BufferingAppenderTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/CountingAppender.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/CountingAppender.cs b/tests/src/Appender/CountingAppender.cs index 0e0aa15..3e8f8bb 100644 --- a/tests/src/Appender/CountingAppender.cs +++ b/tests/src/Appender/CountingAppender.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/DebugAppenderTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/DebugAppenderTest.cs b/tests/src/Appender/DebugAppenderTest.cs index 53cb116..c964e3f 100644 --- a/tests/src/Appender/DebugAppenderTest.cs +++ b/tests/src/Appender/DebugAppenderTest.cs @@ -47,7 +47,7 @@ namespace log4net.Tests.Appender debugAppender.Category = null; TestErrorHandler testErrHandler = new TestErrorHandler(); - debugAppender.ErrorHandler = testErrHandler; + debugAppender.ErrorHandler = testErrHandler; BasicConfigurator.Configure(rep, debugAppender); @@ -147,7 +147,7 @@ namespace log4net.Tests.Appender private bool m_errorOccured = false; public bool ErrorOccured - { + { get { return m_errorOccured; } } #region IErrorHandler Members http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/EventLogAppenderTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/EventLogAppenderTest.cs b/tests/src/Appender/EventLogAppenderTest.cs index eb162e8..c3a3376 100644 --- a/tests/src/Appender/EventLogAppenderTest.cs +++ b/tests/src/Appender/EventLogAppenderTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/RemotingAppenderTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/RemotingAppenderTest.cs b/tests/src/Appender/RemotingAppenderTest.cs index 7bc5551..ded5e4b 100644 --- a/tests/src/Appender/RemotingAppenderTest.cs +++ b/tests/src/Appender/RemotingAppenderTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -321,7 +321,7 @@ namespace log4net.Tests.Appender /// </summary> /// <param name="events">The events to log.</param> /// <remarks> - /// Logs the events to to an internal buffer. The logged events can + /// Logs the events to to an internal buffer. The logged events can /// be retrieved via the <see cref="Events"/> property. To clear /// the buffer call the <see cref="Reset"/> method. /// </remarks> @@ -333,7 +333,7 @@ namespace log4net.Tests.Appender #region Override implementation of MarshalByRefObject /// <summary> - /// Obtains a lifetime service object to control the lifetime + /// Obtains a lifetime service object to control the lifetime /// policy for this instance. /// </summary> /// <returns> http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/SmtpPickupDirAppenderTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/SmtpPickupDirAppenderTest.cs b/tests/src/Appender/SmtpPickupDirAppenderTest.cs index 6fbb082..0553fb6 100644 --- a/tests/src/Appender/SmtpPickupDirAppenderTest.cs +++ b/tests/src/Appender/SmtpPickupDirAppenderTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Appender/StringAppender.cs ---------------------------------------------------------------------- diff --git a/tests/src/Appender/StringAppender.cs b/tests/src/Appender/StringAppender.cs index 977099c..c80cd4a 100644 --- a/tests/src/Appender/StringAppender.cs +++ b/tests/src/Appender/StringAppender.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/tests/src/AssemblyInfo.cs b/tests/src/AssemblyInfo.cs index f8b2a45..7a8f2a2 100644 --- a/tests/src/AssemblyInfo.cs +++ b/tests/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -19,7 +19,7 @@ using System.Reflection; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Context/LogicalThreadContextTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Context/LogicalThreadContextTest.cs b/tests/src/Context/LogicalThreadContextTest.cs index 849d963..34a7136 100644 --- a/tests/src/Context/LogicalThreadContextTest.cs +++ b/tests/src/Context/LogicalThreadContextTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Context/ThreadContextTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Context/ThreadContextTest.cs b/tests/src/Context/ThreadContextTest.cs index e489efc..e7c8938 100644 --- a/tests/src/Context/ThreadContextTest.cs +++ b/tests/src/Context/ThreadContextTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Core/FixingTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Core/FixingTest.cs b/tests/src/Core/FixingTest.cs index dbe6b3e..50bbb89 100644 --- a/tests/src/Core/FixingTest.cs +++ b/tests/src/Core/FixingTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Core/ShutdownTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Core/ShutdownTest.cs b/tests/src/Core/ShutdownTest.cs index 720a321..32d9ac2 100644 --- a/tests/src/Core/ShutdownTest.cs +++ b/tests/src/Core/ShutdownTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Core/StringFormatTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Core/StringFormatTest.cs b/tests/src/Core/StringFormatTest.cs index 16c7b5a..d0f8473 100644 --- a/tests/src/Core/StringFormatTest.cs +++ b/tests/src/Core/StringFormatTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/DateFormatter/AbsoluteTimeDateFormatterTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/DateFormatter/AbsoluteTimeDateFormatterTest.cs b/tests/src/DateFormatter/AbsoluteTimeDateFormatterTest.cs index 083dbf7..5fe1bb1 100644 --- a/tests/src/DateFormatter/AbsoluteTimeDateFormatterTest.cs +++ b/tests/src/DateFormatter/AbsoluteTimeDateFormatterTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -96,7 +96,7 @@ namespace log4net.Tests.DateFormatter { invocations++; } - + } internal class FormatterTwo : FormatterOne http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Filter/FilterTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Filter/FilterTest.cs b/tests/src/Filter/FilterTest.cs index ea9a3d1..f88e867 100644 --- a/tests/src/Filter/FilterTest.cs +++ b/tests/src/Filter/FilterTest.cs @@ -72,7 +72,7 @@ namespace log4net.Tests.Filter }); Assert.IsNotNull(appender); - MultiplePropertyFilter multiplePropertyFilter = + MultiplePropertyFilter multiplePropertyFilter = ((AppenderSkeleton)appender).FilterHead as MultiplePropertyFilter; MultiplePropertyFilter.Condition[] conditions = multiplePropertyFilter.GetConditions(); @@ -102,7 +102,7 @@ namespace log4net.Tests.Filter { _conditions.Add(condition); } - + public class Condition { private string key, stringToMatch; http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Hierarchy/Hierarchy.cs ---------------------------------------------------------------------- diff --git a/tests/src/Hierarchy/Hierarchy.cs b/tests/src/Hierarchy/Hierarchy.cs index 3755d7b..55ca258 100644 --- a/tests/src/Hierarchy/Hierarchy.cs +++ b/tests/src/Hierarchy/Hierarchy.cs @@ -66,7 +66,7 @@ namespace log4net.Tests.Hierarchy CountingAppender alpha = new CountingAppender(); CountingAppender beta = new CountingAppender(); - Repository.Hierarchy.Hierarchy hierarchy = + Repository.Hierarchy.Hierarchy hierarchy = (Repository.Hierarchy.Hierarchy)Utils.GetRepository(); hierarchy.Root.AddAppender(alpha); http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Hierarchy/Logger.cs ---------------------------------------------------------------------- diff --git a/tests/src/Hierarchy/Logger.cs b/tests/src/Hierarchy/Logger.cs index 776dbd6..7335920 100644 --- a/tests/src/Hierarchy/Logger.cs +++ b/tests/src/Hierarchy/Logger.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Hierarchy/XmlHierarchyConfiguratorTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Hierarchy/XmlHierarchyConfiguratorTest.cs b/tests/src/Hierarchy/XmlHierarchyConfiguratorTest.cs index 05f1586..224e710 100644 --- a/tests/src/Hierarchy/XmlHierarchyConfiguratorTest.cs +++ b/tests/src/Hierarchy/XmlHierarchyConfiguratorTest.cs @@ -49,14 +49,14 @@ namespace log4net.Tests.Hierarchy [Test][Platform(Include="Win")] public void EnvironmentOnWindowsIsCaseInsensitive() { - SetTestPropWithPath(); + SetTestPropWithPath(); Assert.AreNotEqual("Path=", TestProp); } [Test][Platform(Include="Unix")] public void EnvironmentOnUnixIsCaseSensitive() { - SetTestPropWithPath(); + SetTestPropWithPath(); Assert.AreEqual("Path=", TestProp); } #endif @@ -75,7 +75,7 @@ namespace log4net.Tests.Hierarchy public TestConfigurator() : base(null) { } - public void PublicSetParameter(XmlElement element, object target) + public void PublicSetParameter(XmlElement element, object target) { SetParameter(element, target); } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Layout/DynamicPatternLayoutTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Layout/DynamicPatternLayoutTest.cs b/tests/src/Layout/DynamicPatternLayoutTest.cs index ee79a0a..1a137bf 100644 --- a/tests/src/Layout/DynamicPatternLayoutTest.cs +++ b/tests/src/Layout/DynamicPatternLayoutTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Layout/PatternLayoutTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Layout/PatternLayoutTest.cs b/tests/src/Layout/PatternLayoutTest.cs index 49ced68..d272b11 100644 --- a/tests/src/Layout/PatternLayoutTest.cs +++ b/tests/src/Layout/PatternLayoutTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Layout/XmlLayoutTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Layout/XmlLayoutTest.cs b/tests/src/Layout/XmlLayoutTest.cs index ee4dee2..8ae4ea7 100644 --- a/tests/src/Layout/XmlLayoutTest.cs +++ b/tests/src/Layout/XmlLayoutTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -315,7 +315,7 @@ namespace log4net.Tests.Layout ILoggerRepository rep = LogManager.CreateRepository(Guid.NewGuid().ToString()); BasicConfigurator.Configure(rep, stringAppender); ILog log1 = LogManager.GetLogger(rep.Name, "TestLogger"); - Action<int> bar = foo => { + Action<int> bar = foo => { try { throw new NullReferenceException(); } catch (Exception ex) { http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/LoggerRepository/ConfigurationMessages.cs ---------------------------------------------------------------------- diff --git a/tests/src/LoggerRepository/ConfigurationMessages.cs b/tests/src/LoggerRepository/ConfigurationMessages.cs index e9a8877..fd4cfa4 100644 --- a/tests/src/LoggerRepository/ConfigurationMessages.cs +++ b/tests/src/LoggerRepository/ConfigurationMessages.cs @@ -54,7 +54,7 @@ namespace log4net.Tests.LoggerRepository <level value=""ALL"" /> <appender-ref ref=""LogLogAppender"" /> <appender-ref ref=""MemoryAppender"" /> - </root> + </root> </log4net>"); ILoggerRepository rep = LogManager.CreateRepository(Guid.NewGuid().ToString()); http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/tests/src/Util/CyclicBufferTest.cs ---------------------------------------------------------------------- diff --git a/tests/src/Util/CyclicBufferTest.cs b/tests/src/Util/CyclicBufferTest.cs index a3a95cd..48af64c 100644 --- a/tests/src/Util/CyclicBufferTest.cs +++ b/tests/src/Util/CyclicBufferTest.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0