Skip to content

Commit b4678fc

Browse files
authored
[java] Fix code formatting (#15903)
1 parent 6f4ce7e commit b4678fc

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

java/src/org/openqa/selenium/bidi/browsingcontext/BrowsingContext.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ public List<BrowsingContextInfo> getTree() {
150150

151151
public List<BrowsingContextInfo> getTree(String root) {
152152
return this.bidi.send(
153-
new Command<>(
154-
"browsingContext.getTree", Map.of("root", root), browsingContextInfoListMapper));
153+
new Command<>(
154+
"browsingContext.getTree", Map.of("root", root), browsingContextInfoListMapper));
155155
}
156156

157157
public List<BrowsingContextInfo> getTree(int maxDepth) {
@@ -166,12 +166,12 @@ public List<BrowsingContextInfo> getTree(int maxDepth) {
166166

167167
public List<BrowsingContextInfo> getTree(String root, int maxDepth) {
168168
return this.bidi.send(
169-
new Command<>(
170-
"browsingContext.getTree",
171-
Map.of(
172-
"root", root,
173-
"maxDepth", maxDepth),
174-
browsingContextInfoListMapper));
169+
new Command<>(
170+
"browsingContext.getTree",
171+
Map.of(
172+
"root", root,
173+
"maxDepth", maxDepth),
174+
browsingContextInfoListMapper));
175175
}
176176

177177
public List<BrowsingContextInfo> getTopLevelContexts() {

java/src/org/openqa/selenium/bidi/browsingcontext/BrowsingContextInfo.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ public String getParentBrowsingContext() {
6767
}
6868

6969
public BrowsingContextInfo(
70-
String id, String url, List<BrowsingContextInfo> children, String clientWindow, String originalOpener, String userContext, String parentBrowsingContext) {
70+
String id,
71+
String url,
72+
List<BrowsingContextInfo> children,
73+
String clientWindow,
74+
String originalOpener,
75+
String userContext,
76+
String parentBrowsingContext) {
7177
this.id = id;
7278
this.url = url;
7379
this.children = children;
@@ -125,6 +131,7 @@ public static BrowsingContextInfo fromJson(JsonInput input) {
125131

126132
input.endObject();
127133

128-
return new BrowsingContextInfo(id, url, children, clientWindow, originalOpener, userContext, parentBrowsingContext);
134+
return new BrowsingContextInfo(
135+
id, url, children, clientWindow, originalOpener, userContext, parentBrowsingContext);
129136
}
130137
}

java/test/org/openqa/selenium/bidi/browsingcontext/BrowsingContextTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated;
2525

2626
import java.util.List;
27-
2827
import org.junit.jupiter.api.Test;
2928
import org.openqa.selenium.By;
3029
import org.openqa.selenium.JavascriptExecutor;

0 commit comments

Comments
 (0)