Skip to content

Commit 75243dd

Browse files
committed
Suppressing .NET static analysis warnings.
1 parent 8234938 commit 75243dd

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

dotnet/src/support/PageObjects/WebElementProxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ internal sealed class WebElementProxy : WebDriverObjectProxy, IWrapsElement
3939
/// Initializes a new instance of the <see cref="WebElementProxy"/> class.
4040
/// </summary>
4141
/// <param name="classToProxy">The <see cref="Type"/> of object for which to create a proxy.</param>
42-
/// <param name="locator">The <see cref="IElementLocatorFactory"/> implementation that
43-
/// determines how elements are located.</param>
42+
/// <param name="locator">The <see cref="IElementLocator"/> implementation that determines
43+
/// how elements are located.</param>
4444
/// <param name="bys">The list of methods by which to search for the elements.</param>
4545
/// <param name="cache"><see langword="true"/> to cache the lookup to the element; otherwise, <see langword="false"/>.</param>
4646
private WebElementProxy(Type classToProxy, IElementLocator locator, IEnumerable<By> bys, bool cache)

dotnet/src/webdriver/Internal/ZipStorer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ public enum CompressionMethod : ushort
7070
}
7171

7272
/// <summary>
73-
/// Gets or sets a value indicating whether file names and comments should be encoded using UTF-8.
73+
/// Gets a value indicating whether file names and comments should be encoded using UTF-8.
7474
/// </summary>
7575
public bool EncodeUtf8
7676
{
7777
get { return this.encodeUtf8; }
7878
}
7979

8080
/// <summary>
81-
/// Gets or sets a value indicating whether to force using the deflate algorithm,
81+
/// Gets a value indicating whether to force using the deflate algorithm,
8282
/// even if doing so inflates the stored file.
8383
/// </summary>
8484
public bool ForceDeflating

dotnet/src/webdriver/Remote/RemoteAlert.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ public void Accept()
7272
/// <param name="keysToSend">The keystrokes to send.</param>
7373
public void SendKeys(string keysToSend)
7474
{
75+
if (keysToSend == null)
76+
{
77+
throw new ArgumentNullException("keysToSend", "Keys to send must not be null.");
78+
}
79+
7580
Dictionary<string, object> parameters = new Dictionary<string, object>();
7681
if (this.driver.IsSpecificationCompliant)
7782
{

0 commit comments

Comments
 (0)