- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for requireBracketsForIPv6 (0.08 seconds)
-
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
assertThat(HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost()).isEqualTo("::1"); assertThat(HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost()) .isEqualTo("::1"); // Non-bracketed non-IPv6 works fine. assertThat(HostAndPort.fromString("x").requireBracketsForIPv6().getHost()).isEqualTo("x"); assertThat(HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost()).isEqualTo("x");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 9.7K bytes - Click Count (0)