Skip to content

Commit

Permalink
De-beta APIs in com.google.common.net
Browse files Browse the repository at this point in the history
Fixes #3052
Fixes #3414
Fixes #3417
Fixes #3423

RELNOTES=`net`: Removed `@Beta` from APIs in net.
PiperOrigin-RevId: 416312524
  • Loading branch information
amalloy authored and Google Java Core Libraries committed Dec 14, 2021
1 parent 8b4ad17 commit 261ac7a
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 38 deletions.
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/net/HostAndPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.CharMatcher;
import com.google.common.base.Objects;
Expand Down Expand Up @@ -60,7 +59,6 @@
* @author Paul Marks
* @since 10.0
*/
@Beta
@Immutable
@GwtCompatible
@ElementTypesAreNonnullByDefault
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/net/HostSpecifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.common.net;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Preconditions;
import java.net.InetAddress;
Expand All @@ -41,7 +40,6 @@
* @author Craig Berry
* @since 5.0
*/
@Beta
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public final class HostSpecifier {
Expand Down
10 changes: 4 additions & 6 deletions android/guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.common.net;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;

/**
Expand Down Expand Up @@ -102,7 +101,6 @@ private HttpHeaders() {}
*
* @since 17.0
*/
@Beta
public static final String FOLLOW_ONLY_WHEN_PRERENDER_SHOWN = "Follow-Only-When-Prerender-Shown";
/** The HTTP {@code Host} header field name. */
public static final String HOST = "Host";
Expand Down Expand Up @@ -357,7 +355,7 @@ private ReferrerPolicyValues() {}
*
* @since 27.1
*/
@Beta public static final String SOURCE_MAP = "SourceMap";
public static final String SOURCE_MAP = "SourceMap";

/**
* The HTTP <a href="http://tools.ietf.org/html/rfc6797#section-6.1">{@code
Expand Down Expand Up @@ -455,14 +453,14 @@ private ReferrerPolicyValues() {}
*
* @since 15.0
*/
@Beta public static final String PUBLIC_KEY_PINS = "Public-Key-Pins";
public static final String PUBLIC_KEY_PINS = "Public-Key-Pins";
/**
* The HTTP <a href="http://tools.ietf.org/html/draft-evans-palmer-key-pinning">{@code
* Public-Key-Pins-Report-Only}</a> header field name.
*
* @since 15.0
*/
@Beta public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
/**
* The HTTP {@code X-Request-ID} header field name.
*
Expand All @@ -482,7 +480,7 @@ private ReferrerPolicyValues() {}
*
* @since 24.1
*/
@Beta public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options";
public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options";
/** The HTTP {@code X-XSS-Protection} header field name. */
public static final String X_XSS_PROTECTION = "X-XSS-Protection";
/**
Expand Down
3 changes: 0 additions & 3 deletions android/guava/src/com/google/common/net/InetAddresses.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.CharMatcher;
import com.google.common.base.MoreObjects;
Expand Down Expand Up @@ -95,7 +94,6 @@
* @author Erik Kline
* @since 5.0
*/
@Beta
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public final class InetAddresses {
Expand Down Expand Up @@ -667,7 +665,6 @@ public static Inet4Address get6to4IPv4Address(Inet6Address ip) {
*
* @since 5.0
*/
@Beta
public static final class TeredoInfo {
private final Inet4Address server;
private final Inet4Address client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Ascii;
import com.google.common.base.CharMatcher;
Expand Down Expand Up @@ -71,7 +70,6 @@
* @author Catherine Berry
* @since 5.0
*/
@Beta
@GwtCompatible(emulated = true)
@Immutable
@ElementTypesAreNonnullByDefault
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Ascii;
import com.google.common.base.CharMatcher;
Expand Down Expand Up @@ -70,7 +69,6 @@
* @since 12.0
* @author Gregory Kick
*/
@Beta
@GwtCompatible
@Immutable
@ElementTypesAreNonnullByDefault
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/net/PercentEscaper.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.escape.UnicodeEscaper;
import javax.annotation.CheckForNull;
Expand Down Expand Up @@ -50,7 +49,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class PercentEscaper extends UnicodeEscaper {
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/net/HostAndPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.CharMatcher;
import com.google.common.base.Objects;
Expand Down Expand Up @@ -60,7 +59,6 @@
* @author Paul Marks
* @since 10.0
*/
@Beta
@Immutable
@GwtCompatible
@ElementTypesAreNonnullByDefault
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/net/HostSpecifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.common.net;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Preconditions;
import java.net.InetAddress;
Expand All @@ -41,7 +40,6 @@
* @author Craig Berry
* @since 5.0
*/
@Beta
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public final class HostSpecifier {
Expand Down
10 changes: 4 additions & 6 deletions guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.common.net;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;

/**
Expand Down Expand Up @@ -102,7 +101,6 @@ private HttpHeaders() {}
*
* @since 17.0
*/
@Beta
public static final String FOLLOW_ONLY_WHEN_PRERENDER_SHOWN = "Follow-Only-When-Prerender-Shown";
/** The HTTP {@code Host} header field name. */
public static final String HOST = "Host";
Expand Down Expand Up @@ -357,7 +355,7 @@ private ReferrerPolicyValues() {}
*
* @since 27.1
*/
@Beta public static final String SOURCE_MAP = "SourceMap";
public static final String SOURCE_MAP = "SourceMap";

/**
* The HTTP <a href="http://tools.ietf.org/html/rfc6797#section-6.1">{@code
Expand Down Expand Up @@ -455,14 +453,14 @@ private ReferrerPolicyValues() {}
*
* @since 15.0
*/
@Beta public static final String PUBLIC_KEY_PINS = "Public-Key-Pins";
public static final String PUBLIC_KEY_PINS = "Public-Key-Pins";
/**
* The HTTP <a href="http://tools.ietf.org/html/draft-evans-palmer-key-pinning">{@code
* Public-Key-Pins-Report-Only}</a> header field name.
*
* @since 15.0
*/
@Beta public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
/**
* The HTTP {@code X-Request-ID} header field name.
*
Expand All @@ -482,7 +480,7 @@ private ReferrerPolicyValues() {}
*
* @since 24.1
*/
@Beta public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options";
public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options";
/** The HTTP {@code X-XSS-Protection} header field name. */
public static final String X_XSS_PROTECTION = "X-XSS-Protection";
/**
Expand Down
3 changes: 0 additions & 3 deletions guava/src/com/google/common/net/InetAddresses.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.CharMatcher;
import com.google.common.base.MoreObjects;
Expand Down Expand Up @@ -95,7 +94,6 @@
* @author Erik Kline
* @since 5.0
*/
@Beta
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public final class InetAddresses {
Expand Down Expand Up @@ -667,7 +665,6 @@ public static Inet4Address get6to4IPv4Address(Inet6Address ip) {
*
* @since 5.0
*/
@Beta
public static final class TeredoInfo {
private final Inet4Address server;
private final Inet4Address client;
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/net/InternetDomainName.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Ascii;
import com.google.common.base.CharMatcher;
Expand Down Expand Up @@ -71,7 +70,6 @@
* @author Catherine Berry
* @since 5.0
*/
@Beta
@GwtCompatible(emulated = true)
@Immutable
@ElementTypesAreNonnullByDefault
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Ascii;
import com.google.common.base.CharMatcher;
Expand Down Expand Up @@ -70,7 +69,6 @@
* @since 12.0
* @author Gregory Kick
*/
@Beta
@GwtCompatible
@Immutable
@ElementTypesAreNonnullByDefault
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/net/PercentEscaper.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.escape.UnicodeEscaper;
import javax.annotation.CheckForNull;
Expand Down Expand Up @@ -50,7 +49,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class PercentEscaper extends UnicodeEscaper {
Expand Down

0 comments on commit 261ac7a

Please sign in to comment.