Skip to content

Commit

Permalink
Remove @Beta from various Escapers and Escaper accessories.
Browse files Browse the repository at this point in the history
Fixes #5744

RELNOTES=`escape`: Removed `@Beta` from various Escapers and Escaper accessories.
PiperOrigin-RevId: 422625838
  • Loading branch information
chaoren authored and Google Java Core Libraries committed Jan 18, 2022
1 parent c6dba9b commit 468c68a
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static com.google.common.escape.Escapers.computeReplacement;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.escape.CharEscaper;
import com.google.common.escape.Escaper;
Expand All @@ -32,7 +31,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
public final class EscaperAsserts {
private EscaperAsserts() {}
Expand Down
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 java.util.Map;
import javax.annotation.CheckForNull;
Expand All @@ -41,7 +40,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class ArrayBasedCharEscaper extends CharEscaper {
Expand Down
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.annotations.VisibleForTesting;
import java.util.Collections;
Expand All @@ -36,7 +35,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class ArrayBasedEscaperMap {
Expand Down
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 java.util.Map;
import javax.annotation.CheckForNull;
Expand All @@ -41,7 +40,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class ArrayBasedUnicodeEscaper extends UnicodeEscaper {
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/escape/CharEscaper.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 javax.annotation.CheckForNull;

Expand All @@ -40,7 +39,6 @@
* @author Sven Mawson
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class CharEscaper extends Escaper {
Expand Down
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.errorprone.annotations.CanIgnoreReturnValue;
import java.util.HashMap;
Expand All @@ -34,7 +33,6 @@
* @author Sven Mawson
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class CharEscaperBuilder {
Expand Down
3 changes: 0 additions & 3 deletions android/guava/src/com/google/common/escape/Escapers.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.errorprone.annotations.CanIgnoreReturnValue;
import java.util.HashMap;
Expand All @@ -31,7 +30,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class Escapers {
Expand Down Expand Up @@ -93,7 +91,6 @@ public static Builder builder() {
* @author David Beaumont
* @since 15.0
*/
@Beta
public static final class Builder {
private final Map<Character, String> replacementMap = new HashMap<>();
private char safeMin = Character.MIN_VALUE;
Expand Down
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 javax.annotation.CheckForNull;

Expand Down Expand Up @@ -50,7 +49,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class UnicodeEscaper extends Escaper {
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/xml/XmlEscapers.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.common.xml;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.escape.Escaper;
import com.google.common.escape.Escapers;
Expand All @@ -38,7 +37,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public class XmlEscapers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static com.google.common.escape.Escapers.computeReplacement;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.escape.CharEscaper;
import com.google.common.escape.Escaper;
Expand All @@ -32,7 +31,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
public final class EscaperAsserts {
private EscaperAsserts() {}
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/escape/ArrayBasedCharEscaper.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 java.util.Map;
import javax.annotation.CheckForNull;
Expand All @@ -41,7 +40,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class ArrayBasedCharEscaper extends CharEscaper {
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/escape/ArrayBasedEscaperMap.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.annotations.VisibleForTesting;
import java.util.Collections;
Expand All @@ -36,7 +35,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class ArrayBasedEscaperMap {
Expand Down
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 java.util.Map;
import javax.annotation.CheckForNull;
Expand All @@ -41,7 +40,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class ArrayBasedUnicodeEscaper extends UnicodeEscaper {
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/escape/CharEscaper.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 javax.annotation.CheckForNull;

Expand All @@ -40,7 +39,6 @@
* @author Sven Mawson
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class CharEscaper extends Escaper {
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/escape/CharEscaperBuilder.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.errorprone.annotations.CanIgnoreReturnValue;
import java.util.HashMap;
Expand All @@ -34,7 +33,6 @@
* @author Sven Mawson
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class CharEscaperBuilder {
Expand Down
3 changes: 0 additions & 3 deletions guava/src/com/google/common/escape/Escapers.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.errorprone.annotations.CanIgnoreReturnValue;
import java.util.HashMap;
Expand All @@ -31,7 +30,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class Escapers {
Expand Down Expand Up @@ -93,7 +91,6 @@ public static Builder builder() {
* @author David Beaumont
* @since 15.0
*/
@Beta
public static final class Builder {
private final Map<Character, String> replacementMap = new HashMap<>();
private char safeMin = Character.MIN_VALUE;
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/escape/UnicodeEscaper.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 javax.annotation.CheckForNull;

Expand Down Expand Up @@ -50,7 +49,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class UnicodeEscaper extends Escaper {
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/xml/XmlEscapers.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.common.xml;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.escape.Escaper;
import com.google.common.escape.Escapers;
Expand All @@ -38,7 +37,6 @@
* @author David Beaumont
* @since 15.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public class XmlEscapers {
Expand Down

0 comments on commit 468c68a

Please sign in to comment.