Merge pull request #95 from sean-gilliam/fix-typos

Fixed several typos
This commit is contained in:
Marko Lahma
2015-02-04 19:52:54 +06:00
23 changed files with 37 additions and 37 deletions

View File

@@ -28,7 +28,7 @@ using System.Reflection;
//
// This is to support side-by-side deployment of .NET 1.1 and .NET 2.0 versions of the assembly.
//note that this #if #elif #endif contstruct requires NET_#_# values be checked in DESCENDING order to work properly
//note that this #if #elif #endif construct requires NET_#_# values be checked in DESCENDING order to work properly
// (e.g., add any new ones at the TOP of this construct!)
#if NET_4_5

View File

@@ -27,10 +27,10 @@ namespace Spring.Collections.Generic
/// <summary>
/// <p>A collection that contains no duplicate elements. This interface models the mathematical
/// <c>Set</c> abstraction.
/// The order of elements in a set is dependant on (a)the data-structure implementation, and
/// The order of elements in a set is dependent on (a)the data-structure implementation, and
/// (b)the implementation of the various <c>Set</c> methods, and thus is not guaranteed.</p>
///
/// <p>None of the <c>Set</c> implementations in this library are guranteed to be thread-safe
/// <p>None of the <c>Set</c> implementations in this library are guaranteed to be thread-safe
/// in any way unless wrapped in a <c>SynchronizedSet</c>.</p>
///
/// <p>The following table summarizes the binary operators that are supported by the <c>Set</c> class.</p>

View File

@@ -248,7 +248,7 @@ namespace Spring.Collections
/// Performs an unsigned bitwise right shift with the specified number
/// </summary>
/// <param name="number">Number to operate on</param>
/// <param name="bits">Ammount of bits to shift</param>
/// <param name="bits">Amount of bits to shift</param>
/// <returns>The resulting number from the shift operation</returns>
private int urShift(int number, int bits)
{
@@ -616,7 +616,7 @@ namespace Spring.Collections
/// <summary>
/// Returns an <see cref="System.Collections.IEnumerator"/> over the elements in this queue.
/// The enumeratoar does not return the elements in any particular order.
/// The enumerator does not return the elements in any particular order.
/// </summary>
/// <returns> an enumerator over the elements in this queue.</returns>
public override IEnumerator GetEnumerator()
@@ -660,10 +660,10 @@ namespace Spring.Collections
return result;
}
/// <summary>
/// Queries the queue to see if it contains the specified <pararef name="element"/>
/// Queries the queue to see if it contains the specified <paramref name="element"/>
/// </summary>
/// <param name="element">element to look for.</param>
/// <returns><see lang="true"/> if the queue contains the <pararef name="element"/>,
/// <returns><see lang="true"/> if the queue contains the <paramref name="element"/>,
/// <see lang="false"/> otherwise.</returns>
public bool Contains( object element )
{

View File

@@ -68,7 +68,7 @@ namespace Spring.Collections
{ }
/// <summary>
/// Initializes a new instance of <see cref="SynchronizedHashtable"/>, copying inital entries from <param name="dictionary"/>
/// Initializes a new instance of <see cref="SynchronizedHashtable"/>, copying initial entries from <param name="dictionary"/>
/// handling keys depending on <param name="ignoreCase"/>.
/// </summary>
public SynchronizedHashtable(IDictionary dictionary, bool ignoreCase)
@@ -288,7 +288,7 @@ namespace Spring.Collections
///<summary>
/// Returns, whether this <see cref="IDictionary"/> contains an entry with the specified <paramref name="value"/>.
///</summary>
///<param name="value">The val<EFBFBD>e to look for</param>
///<param name="value">The value to look for</param>
///<returns><see lang="true"/>, if this <see cref="IDictionary"/> contains an entry with this <paramref name="value"/></returns>
public bool ContainsValue(object value)
{

View File

@@ -221,7 +221,7 @@ namespace Spring.Context.Attributes
}
}
//TODO: container does not presently support the concept of Primary object defintion for type resolution
//TODO: container does not presently support the concept of Primary object definition for type resolution
//if (Attribute.GetCustomAttribute(metadata, typeof(PrimaryAttribute)) != null)
//{
// ObjectDef.isPrimary = true;

View File

@@ -27,7 +27,7 @@ using Spring.Objects.Factory.Support;
namespace Spring.Context.Attributes.TypeFilters
{
/// <summary>
/// Creates a new instance of a givin type string
/// Creates a new instance of a given type string
/// </summary>
public static class CustomTypeFactory
{

View File

@@ -39,7 +39,7 @@ namespace Spring.Context.Config
/// embedded in the supplied <see cref="T:Spring.Objects.Factory.Xml.ParserContext"/>
/// </summary>
/// <param name="element">The element to be parsed.</param>
/// <param name="parserContext">TThe object encapsulating the current state of the parsing process.
/// <param name="parserContext">The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry</param>
/// <returns>The primary object definition.</returns>
/// <remarks>

View File

@@ -53,7 +53,7 @@ namespace Spring.Context.Config
/// embedded in the supplied <see cref="T:Spring.Objects.Factory.Xml.ParserContext"/>
/// </summary>
/// <param name="element">The element to be parsed.</param>
/// <param name="parserContext">TThe object encapsulating the current state of the parsing process.
/// <param name="parserContext">The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry</param>
/// <returns>The primary object definition.</returns>
/// <remarks>

View File

@@ -98,7 +98,7 @@ namespace Spring.Objects.Factory.Xml
/// embedded in the supplied <see cref="ParserContext"/>
/// </summary>
/// <param name="element">The element to be parsed.</param>
/// <param name="parserContext">TThe object encapsulating the current state of the parsing process.
/// <param name="parserContext">The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry</param>
/// <returns>The primary object definition.</returns>
/// <remarks>

View File

@@ -47,7 +47,7 @@ namespace Spring.Objects.Factory.Xml
/// The element to be parsed.
/// </param>
/// <param name="parserContext">
/// TThe object encapsulating the current state of the parsing process.
/// The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry
/// </param>
/// <returns>

View File

@@ -98,7 +98,7 @@ namespace Spring.Objects.Factory.Xml
/// embedded in the supplied <see cref="ParserContext"/>
/// </summary>
/// <param name="element">The element to be parsed.</param>
/// <param name="parserContext">TThe object encapsulating the current state of the parsing process.
/// <param name="parserContext">The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry</param>
/// <returns>The primary object definition.</returns>
/// <remarks>

View File

@@ -392,7 +392,7 @@ namespace Spring.Data.NHibernate.Generic
/// <summary>
/// Delete the given persistent instance.
/// </summary>
/// <param name="entity">Tthe persistent instance to delete.</param>
/// <param name="entity">The persistent instance to delete.</param>
/// <param name="lockMode">The lock mode to obtain.</param>
/// <remarks>
/// Obtains the specified lock mode if the instance exists, implicitly
@@ -578,7 +578,7 @@ namespace Spring.Data.NHibernate.Generic
/// Save or update the given persistent instance,
/// according to its id (matching the configured "unsaved-value"?).
/// </summary>
/// <param name="entity">Tthe persistent instance to save or update
/// <param name="entity">The persistent instance to save or update
/// (to be associated with the Hibernate Session).</param>
/// <exception cref="DataAccessException">In case of Hibernate errors</exception>
public void SaveOrUpdate(object entity)

View File

@@ -626,7 +626,7 @@ namespace Spring.Data.NHibernate
/// Save or update the given persistent instance,
/// according to its id (matching the configured "unsaved-value"?).
/// </summary>
/// <param name="entity">Tthe persistent instance to save or update
/// <param name="entity">The persistent instance to save or update
/// (to be associated with the Hibernate Session).</param>
/// <exception cref="DataAccessException">In case of Hibernate errors</exception>
public void SaveOrUpdate(object entity)
@@ -638,7 +638,7 @@ namespace Spring.Data.NHibernate
/// Save or update all given persistent instances,
/// according to its id (matching the configured "unsaved-value"?).
/// </summary>
/// <param name="entities">Tthe persistent instances to save or update
/// <param name="entities">The persistent instances to save or update
/// (to be associated with the Hibernate Session)he entities.</param>
/// <exception cref="DataAccessException">In case of Hibernate errors</exception>
public void SaveOrUpdateAll(ICollection entities)
@@ -729,7 +729,7 @@ namespace Spring.Data.NHibernate
/// <summary>
/// Delete the given persistent instance.
/// </summary>
/// <param name="entity">Tthe persistent instance to delete.</param>
/// <param name="entity">The persistent instance to delete.</param>
/// <param name="lockMode">The lock mode to obtain.</param>
/// <remarks>
/// Obtains the specified lock mode if the instance exists, implicitly

View File

@@ -69,7 +69,7 @@ namespace Spring.Data.NHibernate
/// checking whether the corresponding database entry still exists
/// (throwing an OptimisticLockingFailureException if not found).
/// </remarks>
/// <param name="entity">Tthe persistent instance to delete.</param>
/// <param name="entity">The persistent instance to delete.</param>
/// <param name="lockMode">The lock mode to obtain.</param>
/// <exception cref="DataAccessException">In case of Hibernate errors</exception>
void Delete(object entity, LockMode lockMode);
@@ -217,7 +217,7 @@ namespace Spring.Data.NHibernate
/// Save or update the given persistent instance,
/// according to its id (matching the configured "unsaved-value"?).
/// </summary>
/// <param name="entity">Tthe persistent instance to save or update
/// <param name="entity">The persistent instance to save or update
/// (to be associated with the Hibernate Session).</param>
/// <exception cref="DataAccessException">In case of Hibernate errors</exception>
void SaveOrUpdate(object entity);

View File

@@ -425,7 +425,7 @@ namespace Spring.Data.NHibernate
/// Save or update all given persistent instances,
/// according to its id (matching the configured "unsaved-value"?).
/// </summary>
/// <param name="entities">Tthe persistent instances to save or update
/// <param name="entities">The persistent instances to save or update
/// (to be associated with the Hibernate Session)he entities.</param>
/// <exception cref="DataAccessException">In case of Hibernate errors</exception>
void SaveOrUpdateAll(ICollection entities);

View File

@@ -144,7 +144,7 @@ namespace Spring.Messaging.Ems.Common
/// <summary>
/// Creates the session.
/// </summary>
/// <param name="transacted">if set to <c>true</c> the session has transaction semantcis.</param>
/// <param name="transacted">if set to <c>true</c> the session has transaction semantics.</param>
/// <param name="acknowledgeMode">Indicates whether and how the consumer is to acknowledge received messages.
/// This version of CreateSession accepts an integer value associated with the acknowledge mode described by a Session member and should only be used for backward compatibility.
/// This parameter is ignored if the session is transacted.</param>

View File

@@ -109,7 +109,7 @@ namespace Spring.Messaging.Ems.Config
/// embedded in the supplied <see cref="ParserContext"/>
/// </summary>
/// <param name="element">The element to be parsed.</param>
/// <param name="parserContext">TThe object encapsulating the current state of the parsing process.
/// <param name="parserContext">The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry</param>
/// <returns>The primary object definition.</returns>
/// <remarks>

View File

@@ -458,7 +458,7 @@ namespace Spring.Messaging.Ems.Listener.Adapter
/// </para>
/// </remarks>
/// <param name="request">The original incoming message.</param>
/// <param name="response">Tthe outgoing message about to be sent.</param>
/// <param name="response">The outgoing message about to be sent.</param>
/// <param name="session">The session to operate on.</param>
/// <returns>the response destination (never <code>null</code>)</returns>
/// <exception cref="EMSException">if thrown by EMS API methods</exception>

View File

@@ -109,7 +109,7 @@ namespace Spring.Messaging.Nms.Config
/// embedded in the supplied <see cref="ParserContext"/>
/// </summary>
/// <param name="element">The element to be parsed.</param>
/// <param name="parserContext">TThe object encapsulating the current state of the parsing process.
/// <param name="parserContext">The object encapsulating the current state of the parsing process.
/// Provides access to a IObjectDefinitionRegistry</param>
/// <returns>The primary object definition.</returns>
/// <remarks>

View File

@@ -481,7 +481,7 @@ namespace Spring.Messaging.Nms.Listener.Adapter
/// </para>
/// </remarks>
/// <param name="request">The original incoming message.</param>
/// <param name="response">Tthe outgoing message about to be sent.</param>
/// <param name="response">The outgoing message about to be sent.</param>
/// <param name="session">The session to operate on.</param>
/// <returns>the response destination (never <code>null</code>)</returns>
/// <exception cref="NMSException">if thrown by NMS API methods</exception>

View File

@@ -2245,7 +2245,7 @@ namespace Spring.Expressions
args["bars"] = new Bar[] { new Bar() };
Foo foo = new Foo();
// ensure noone changed our test class
// ensure no one changed our test class
Assert.AreEqual("ExactMatch", foo.MethodWithSimilarArguments(1, (Bar[])args["bars"]));
Assert.AreEqual("AssignableMatch", foo.MethodWithSimilarArguments(1, (ICollection)args["bars"]));
@@ -2259,7 +2259,7 @@ namespace Spring.Expressions
args["bars"] = new Bar[] { new Bar() };
Foo foo = new Foo();
// ensure noone changed our test class
// ensure no one changed our test class
Assert.AreEqual("ExactMatch", foo[(Bar[])args["bars"]]);
Assert.AreEqual("AssignableMatch", foo[(ICollection)args["bars"]]);
@@ -2274,7 +2274,7 @@ namespace Spring.Expressions
Dictionary<string, object> args = new Dictionary<string, object>();
args["bars"] = new Bar[] { new Bar() };
// ensure noone changed our test class
// ensure no one changed our test class
Foo foo1 = new Foo(1, (Bar[])args["bars"]);
try
{

View File

@@ -907,7 +907,7 @@ namespace Spring.Util
,type.GetMethod("ParamOverloadedMethod", new Type[] {typeof(string), typeof(string), typeof(string), typeof(string), typeof(object[])})
};
// ensure noone changed our test class
// ensure no one changed our test class
Assert.IsNotNull(candidateMethods[0]);
Assert.IsNotNull(candidateMethods[1]);
Assert.IsNotNull(candidateMethods[2]);
@@ -934,7 +934,7 @@ namespace Spring.Util
, type.GetMethod("MethodWithSimilarArguments", new Type[] {typeof(int), typeof(object[])})
};
// ensure noone changed our test class
// ensure no one changed our test class
Assert.IsNotNull(candidateMethods[0]);
Assert.IsNotNull(candidateMethods[1]);
Assert.IsNotNull(candidateMethods[2]);
@@ -961,7 +961,7 @@ namespace Spring.Util
, type.GetMethod("MethodWithNullableArgument", new Type[] {typeof(int?)})
};
// ensure noone changed our test class
// ensure no one changed our test class
Assert.IsNotNull(candidateMethods[0]);
Assert.IsNotNull(candidateMethods[1]);
Assert.IsNotNull(candidateMethods[2]);

View File

@@ -66,7 +66,7 @@ namespace Spring.Data.Common
public void SetUp()
{
//Other tests in this assembly will have already initialized the internal context that is part of DbProviderFactory
//Reset it back to null so that tests for specifiying additional database providers will be able 're-initialize'
//Reset it back to null so that tests for specifying additional database providers will be able 're-initialize'
//the internal Context of DbProviderFactory.
//Spring.Objects.Factory.Xml.NamespaceParserRegistry.RegisterParser(typeof(Spring.Data.Config.DatabaseNamespaceParser));
if (DbProviderFactory.ApplicationContext != null)
@@ -266,7 +266,7 @@ namespace Spring.Data.Common
public void DefaultInstanceWithMySql()
{
DbProviderFactory.DBPROVIDER_ADDITIONAL_RESOURCE_NAME =
"assembly://Spring.Data.Tests/Spring.Data.Common/AdditonalProviders.xml";
"assembly://Spring.Data.Tests/Spring.Data.Common/AdditionalProviders.xml";
IDbProvider provider = DbProviderFactory.GetDbProvider("MySqlPersonal");
Assert.AreEqual("MySQL, MySQL provider 1.0.7.30072", provider.DbMetadata.ProductName);