[java] Reverting back a bit of code to fit Java 8 source compatibility level
@@ -493,7 +493,7 @@ private boolean fuzzyPositionMatching(int expectedX, int expectedY, String locat
private ExpectedCondition<Boolean> fuzzyMatchingOfCoordinates(
final WebElement element, final int x, final int y) {
- return new ExpectedCondition<>() {
+ return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver ignored) {
return fuzzyPositionMatching(x, y, element.getText());
