Skip to content

Commit ebb232f

Browse files
committed
Run format.sh script
1 parent d1f1b6f commit ebb232f

5 files changed

Lines changed: 21 additions & 21 deletions

File tree

java/src/dev/selenium/tools/modules/ModuleGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,7 @@ public void visit(ModuleRequiresDirective n, Void arg) {
472472
// name. Therefore, the 'processed_' prefix added by bazel must be removed to get the name.
473473
name = name.substring(10);
474474
}
475-
byteBuddyVisitor.visitRequire(
476-
name, getByteBuddyModifier(n.getModifiers()), null);
475+
byteBuddyVisitor.visitRequire(name, getByteBuddyModifier(n.getModifiers()), null);
477476
}
478477

479478
@Override

java/src/org/openqa/selenium/DetachedShadowRootException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
package org.openqa.selenium;
1919

2020
/**
21-
* Indicates that a reference to a shadow root is now "detached" --- the element no longer appears on the
22-
* DOM of the page.
21+
* Indicates that a reference to a shadow root is now "detached" --- the element no longer appears
22+
* on the DOM of the page.
2323
*/
2424
public class DetachedShadowRootException extends WebDriverException {
2525
public DetachedShadowRootException(String message) {

java/src/org/openqa/selenium/InsecureCertificateException.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@
1818
package org.openqa.selenium;
1919

2020
/**
21-
* Indicates that navigation caused by the user agent hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.
21+
* Indicates that navigation caused by the user agent hit a certificate warning, which is usually
22+
* the result of an expired or invalid TLS certificate.
2223
*/
2324
public class InsecureCertificateException extends WebDriverException {
24-
public InsecureCertificateException(String message) {
25-
super(message);
26-
}
25+
public InsecureCertificateException(String message) {
26+
super(message);
27+
}
2728

28-
public InsecureCertificateException(Throwable cause) {
29-
super(cause);
30-
}
29+
public InsecureCertificateException(Throwable cause) {
30+
super(cause);
31+
}
3132

32-
public InsecureCertificateException(String message, Throwable cause) {
33-
super(message, cause);
34-
}
33+
public InsecureCertificateException(String message, Throwable cause) {
34+
super(message, cause);
35+
}
3536
}

java/src/org/openqa/selenium/NoSuchShadowRootException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717

1818
package org.openqa.selenium;
1919

20-
/**
21-
* Indicates that an element does not have a shadow root.
22-
*/
20+
/** Indicates that an element does not have a shadow root. */
2321
public class NoSuchShadowRootException extends NotFoundException {
2422

2523
public NoSuchShadowRootException(String message) {

java/test/org/openqa/selenium/NoSuchShadowRootTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@
1818
package org.openqa.selenium;
1919

2020
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
21+
2122
import org.junit.jupiter.api.Test;
2223
import org.openqa.selenium.testing.JupiterTestBase;
2324

24-
public class NoSuchShadowRootTest extends JupiterTestBase{
25+
public class NoSuchShadowRootTest extends JupiterTestBase {
2526

2627
@Test
27-
public void getNoSuchShadowRoot(){
28+
public void getNoSuchShadowRoot() {
2829
driver.get(pages.shadowRootPage);
2930
WebElement nonExistentShadowRootElement = driver.findElement(By.id("noShadowRoot"));
30-
assertThatExceptionOfType(NoSuchShadowRootException.class).isThrownBy(() -> nonExistentShadowRootElement.getShadowRoot());
31-
}
31+
assertThatExceptionOfType(NoSuchShadowRootException.class)
32+
.isThrownBy(() -> nonExistentShadowRootElement.getShadowRoot());
33+
}
3234
}

0 commit comments

Comments
 (0)