Skip to content

Commit

Permalink
Make java 8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ebekebe committed May 7, 2024
1 parent cfb3ed1 commit 90263f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions visual-java/src/main/java/com/saucelabs/visual/VisualApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,13 @@ private List<RegionIn> extractIgnoreList(CheckOptions options) {
}

List<WebElement> ignoredElements =
options.getIgnoreElements() == null ? List.of() : options.getIgnoreElements();
options.getIgnoreElements() == null ? Arrays.asList() : options.getIgnoreElements();

List<IgnoreRegion> ignoredRegions =
options.getIgnoreRegions() == null ? List.of() : options.getIgnoreRegions();
options.getIgnoreRegions() == null ? Arrays.asList() : options.getIgnoreRegions();

List<VisualRegion> visualRegions =
options.getIgnoreRegions() == null ? List.of() : options.getRegions();
options.getIgnoreRegions() == null ? Arrays.asList() : options.getRegions();

List<RegionIn> result = new ArrayList<>();
for (int i = 0; i < ignoredElements.size(); i++) {
Expand Down

0 comments on commit 90263f6

Please sign in to comment.