Skip to content

Commit a21be8b

Browse files
committed
Add NotNull annotations to make IntelliJ happy
1 parent 309a00c commit a21be8b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/org/labkey/test/components/Component.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.test.components;
1717

1818
import org.apache.commons.lang3.NotImplementedException;
19+
import org.jetbrains.annotations.NotNull;
1920
import org.labkey.test.Locator;
2021
import org.labkey.test.selenium.RefindingWebElement;
2122
import org.labkey.test.util.TestLogger;
@@ -44,13 +45,13 @@ public String toString()
4445
}
4546

4647
@Override
47-
public WebElement findElement(By by)
48+
public @NotNull WebElement findElement(@NotNull By by)
4849
{
4950
return getComponentElement().findElement(by);
5051
}
5152

5253
@Override
53-
public List<WebElement> findElements(By by)
54+
public @NotNull List<WebElement> findElements(@NotNull By by)
5455
{
5556
return getComponentElement().findElements(by);
5657
}
@@ -105,13 +106,13 @@ protected ElementCache()
105106
}
106107

107108
@Override
108-
public List<WebElement> findElements(By by)
109+
public @NotNull List<WebElement> findElements(@NotNull By by)
109110
{
110111
return getComponentElement().findElements(by);
111112
}
112113

113114
@Override
114-
public WebElement findElement(By by)
115+
public @NotNull WebElement findElement(@NotNull By by)
115116
{
116117
return getComponentElement().findElement(by);
117118
}

0 commit comments

Comments
 (0)