Skip to content

Commit ddea0d5

Browse files
committed
[java] Backing out more changes in tests that target Java 9
1 parent 8953f91 commit ddea0d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/client/test/org/openqa/selenium/WaitingConditions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ boolean compareText(String expectedValue, String actualValue) {
7878
}
7979

8080
public static ExpectedCondition<String> elementTextToEqual(final By locator, final String value) {
81-
return new ExpectedCondition<>() {
81+
return new ExpectedCondition<String>() {
8282

8383
@Override
8484
public String apply(WebDriver driver) {
@@ -121,7 +121,7 @@ public String toString() {
121121
}
122122

123123
public static ExpectedCondition<String> pageSourceToContain(final String expectedText) {
124-
return new ExpectedCondition<>() {
124+
return new ExpectedCondition<String>() {
125125
@Override
126126
public String apply(WebDriver driver) {
127127
String source = driver.getPageSource();
@@ -141,7 +141,7 @@ public String toString() {
141141

142142
public static ExpectedCondition<Point> elementLocationToBe(
143143
final WebElement element, final Point expectedLocation) {
144-
return new ExpectedCondition<>() {
144+
return new ExpectedCondition<String>() {
145145
private Point currentLocation = new Point(0, 0);
146146

147147
@Override
@@ -181,7 +181,7 @@ public static ExpectedCondition<String> newWindowIsOpened(final Set<String> orig
181181
}
182182

183183
public static ExpectedCondition<WebDriver> windowToBeSwitchedToWithName(final String windowName) {
184-
return new ExpectedCondition<>() {
184+
return new ExpectedCondition<WebDriver>() {
185185

186186
@Override
187187
public WebDriver apply(WebDriver driver) {

0 commit comments

Comments
 (0)