Skip to content

Commit

Permalink
Suppressing .NET static analysis warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jan 26, 2016
1 parent 8234938 commit 75243dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dotnet/src/support/PageObjects/WebElementProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ internal sealed class WebElementProxy : WebDriverObjectProxy, IWrapsElement
/// Initializes a new instance of the <see cref="WebElementProxy"/> class.
/// </summary>
/// <param name="classToProxy">The <see cref="Type"/> of object for which to create a proxy.</param>
/// <param name="locator">The <see cref="IElementLocatorFactory"/> implementation that
/// determines how elements are located.</param>
/// <param name="locator">The <see cref="IElementLocator"/> implementation that determines
/// how elements are located.</param>
/// <param name="bys">The list of methods by which to search for the elements.</param>
/// <param name="cache"><see langword="true"/> to cache the lookup to the element; otherwise, <see langword="false"/>.</param>
private WebElementProxy(Type classToProxy, IElementLocator locator, IEnumerable<By> bys, bool cache)
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/Internal/ZipStorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ public enum CompressionMethod : ushort
}

/// <summary>
/// Gets or sets a value indicating whether file names and comments should be encoded using UTF-8.
/// Gets a value indicating whether file names and comments should be encoded using UTF-8.
/// </summary>
public bool EncodeUtf8
{
get { return this.encodeUtf8; }
}

/// <summary>
/// Gets or sets a value indicating whether to force using the deflate algorithm,
/// Gets a value indicating whether to force using the deflate algorithm,
/// even if doing so inflates the stored file.
/// </summary>
public bool ForceDeflating
Expand Down
5 changes: 5 additions & 0 deletions dotnet/src/webdriver/Remote/RemoteAlert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public void Accept()
/// <param name="keysToSend">The keystrokes to send.</param>
public void SendKeys(string keysToSend)
{
if (keysToSend == null)
{
throw new ArgumentNullException("keysToSend", "Keys to send must not be null.");
}

Dictionary<string, object> parameters = new Dictionary<string, object>();
if (this.driver.IsSpecificationCompliant)
{
Expand Down

0 comments on commit 75243dd

Please sign in to comment.