File tree Expand file tree Collapse file tree 10 files changed +21
-18
lines changed
java/src/org/openqa/selenium/net Expand file tree Collapse file tree 10 files changed +21
-18
lines changed Original file line number Diff line number Diff line change 2424import java .util .Collections ;
2525import java .util .Enumeration ;
2626import java .util .List ;
27- import org .jspecify .annotations .NullMarked ;
2827import org .jspecify .annotations .Nullable ;
2928import org .openqa .selenium .Platform ;
3029import org .openqa .selenium .WebDriverException ;
3130
32- @ NullMarked
3331public class DefaultNetworkInterfaceProvider implements NetworkInterfaceProvider {
3432 // Cache the list of interfaces between instances. This is mostly used
3533 // to get the loopback interface, so it's ok even though interfaces may go
Original file line number Diff line number Diff line change 2727import java .util .Enumeration ;
2828import java .util .concurrent .TimeUnit ;
2929import java .util .logging .Logger ;
30- import org .jspecify .annotations .NullMarked ;
3130import org .jspecify .annotations .Nullable ;
3231import org .openqa .selenium .Platform ;
3332
34- @ NullMarked
3533public class HostIdentifier {
3634 private static final Logger LOG = Logger .getLogger (HostIdentifier .class .getName ());
3735
Original file line number Diff line number Diff line change 2525import java .io .UncheckedIOException ;
2626import java .nio .charset .Charset ;
2727import java .nio .file .Files ;
28- import org .jspecify .annotations .NullMarked ;
2928
30- @ NullMarked
3129public class LinuxEphemeralPortRangeDetector implements EphemeralPortRangeDetector {
3230
3331 private final int firstEphemeralPort ;
Original file line number Diff line number Diff line change 2929import java .util .logging .Logger ;
3030import java .util .stream .Collectors ;
3131import java .util .stream .StreamSupport ;
32- import org .jspecify .annotations .NullMarked ;
3332import org .jspecify .annotations .Nullable ;
3433
35- @ NullMarked
3634public class NetworkInterface {
3735 private static final Logger LOG = Logger .getLogger (NetworkInterface .class .getName ());
3836
Original file line number Diff line number Diff line change 1717
1818package org .openqa .selenium .net ;
1919
20- import org .jspecify .annotations .NullMarked ;
2120import org .jspecify .annotations .Nullable ;
2221
2322/**
2625 * <p>Basically an abstraction created to allow stubbing of java.net.NetworkInterface, also soothes
2726 * some of the jdk1.2 idioms from this interface into jdk1.5 idioms.
2827 */
29- @ NullMarked
3028public interface NetworkInterfaceProvider {
3129 Iterable <NetworkInterface > getNetworkInterfaces ();
3230
Original file line number Diff line number Diff line change 2828import java .util .List ;
2929import java .util .Objects ;
3030import java .util .concurrent .TimeUnit ;
31- import org .jspecify .annotations .NullMarked ;
3231import org .jspecify .annotations .Nullable ;
3332import org .openqa .selenium .Platform ;
3433import org .openqa .selenium .WebDriverException ;
3534import org .openqa .selenium .internal .Require ;
3635
37- @ NullMarked
3836public class NetworkUtils {
3937
4038 private static @ Nullable InetAddress cachedIp4NonLoopbackAddressOfThisMachine ;
Original file line number Diff line number Diff line change 2626import java .net .SocketTimeoutException ;
2727import java .util .Random ;
2828import java .util .concurrent .TimeUnit ;
29- import org .jspecify .annotations .NullMarked ;
3029import org .openqa .selenium .Platform ;
3130
32- @ NullMarked
3331public class PortProber {
3432
3533 public static final int HIGHEST_PORT = 65535 ;
Original file line number Diff line number Diff line change 3131import java .util .concurrent .TimeUnit ;
3232import java .util .concurrent .atomic .AtomicInteger ;
3333import java .util .logging .Logger ;
34- import org .jspecify .annotations .NullMarked ;
3534
3635/** Polls a URL until a HTTP 200 response is received. */
37- @ NullMarked
3836public class UrlChecker {
3937
4038 private static final Logger LOG = Logger .getLogger (UrlChecker .class .getName ());
Original file line number Diff line number Diff line change 2525import java .net .URL ;
2626import java .net .URLEncoder ;
2727import java .nio .charset .StandardCharsets ;
28- import org .jspecify .annotations .NullMarked ;
2928import org .openqa .selenium .internal .Require ;
3029
31- @ NullMarked
3230public class Urls {
3331
3432 private Urls () {
Original file line number Diff line number Diff line change 1+ // Licensed to the Software Freedom Conservancy (SFC) under one
2+ // or more contributor license agreements. See the NOTICE file
3+ // distributed with this work for additional information
4+ // regarding copyright ownership. The SFC licenses this file
5+ // to you under the Apache License, Version 2.0 (the
6+ // "License"); you may not use this file except in compliance
7+ // with the License. You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing,
12+ // software distributed under the License is distributed on an
13+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ // KIND, either express or implied. See the License for the
15+ // specific language governing permissions and limitations
16+ // under the License.
17+
18+ @ NullMarked
19+ package org .openqa .selenium .net ;
20+
21+ import org .jspecify .annotations .NullMarked ;
You can’t perform that action at this time.
0 commit comments