0d1383
From c5d3a8295d62ede99b5e4c7c6ef63c14819ec112 Mon Sep 17 00:00:00 2001
0d1383
From: Marian Koncek <mkoncek@redhat.com>
0d1383
Date: Mon, 18 Jan 2021 12:39:46 +0100
0d1383
Subject: [PATCH] Remove multi-line annotations
0d1383
0d1383
---
0d1383
 .../guava/src/com/google/common/collect/CompactHashMap.java   | 2 --
0d1383
 .../guava/src/com/google/common/collect/CompactHashSet.java   | 2 --
0d1383
 android/guava/src/com/google/common/graph/Traverser.java      | 3 ---
0d1383
 android/guava/src/com/google/common/primitives/Doubles.java   | 4 ----
0d1383
 android/guava/src/com/google/common/primitives/Floats.java    | 4 ----
0d1383
 android/guava/src/com/google/common/primitives/Ints.java      | 4 ----
0d1383
 android/guava/src/com/google/common/primitives/Shorts.java    | 4 ----
0d1383
 .../src/com/google/common/util/concurrent/ClosingFuture.java  | 3 ---
0d1383
 .../common/util/concurrent/ListeningExecutorService.java      | 4 ----
0d1383
 guava/src/com/google/common/collect/CompactHashMap.java       | 2 --
0d1383
 guava/src/com/google/common/collect/CompactHashSet.java       | 2 --
0d1383
 guava/src/com/google/common/graph/Traverser.java              | 3 ---
0d1383
 guava/src/com/google/common/primitives/Doubles.java           | 4 ----
0d1383
 guava/src/com/google/common/primitives/Floats.java            | 4 ----
0d1383
 guava/src/com/google/common/primitives/Ints.java              | 4 ----
0d1383
 guava/src/com/google/common/primitives/Shorts.java            | 4 ----
0d1383
 .../src/com/google/common/util/concurrent/ClosingFuture.java  | 3 ---
0d1383
 .../common/util/concurrent/ListeningExecutorService.java      | 4 ----
0d1383
 18 files changed, 60 deletions(-)
0d1383
0d1383
diff --git a/android/guava/src/com/google/common/collect/CompactHashMap.java b/android/guava/src/com/google/common/collect/CompactHashMap.java
0d1383
index 69e1412..e6cba86 100644
0d1383
--- a/android/guava/src/com/google/common/collect/CompactHashMap.java
0d1383
+++ b/android/guava/src/com/google/common/collect/CompactHashMap.java
0d1383
@@ -105,8 +105,6 @@ class CompactHashMap<K, V> extends AbstractMap<K, V> implements Serializable {
0d1383
    * Maximum allowed false positive probability of detecting a hash flooding attack given random
0d1383
    * input.
0d1383
    */
0d1383
-  (
0d1383
-      )
0d1383
   static final double HASH_FLOODING_FPP = 0.001;
0d1383
 
0d1383
   /**
0d1383
diff --git a/android/guava/src/com/google/common/collect/CompactHashSet.java b/android/guava/src/com/google/common/collect/CompactHashSet.java
0d1383
index 43072b6..85debcd 100644
0d1383
--- a/android/guava/src/com/google/common/collect/CompactHashSet.java
0d1383
+++ b/android/guava/src/com/google/common/collect/CompactHashSet.java
0d1383
@@ -122,8 +122,6 @@ class CompactHashSet<E> extends AbstractSet<E> implements Serializable {
0d1383
    * Maximum allowed false positive probability of detecting a hash flooding attack given random
0d1383
    * input.
0d1383
    */
0d1383
-  (
0d1383
-      )
0d1383
   static final double HASH_FLOODING_FPP = 0.001;
0d1383
 
0d1383
   /**
0d1383
diff --git a/android/guava/src/com/google/common/graph/Traverser.java b/android/guava/src/com/google/common/graph/Traverser.java
0d1383
index 7a40bdd..2b3f60c 100644
0d1383
--- a/android/guava/src/com/google/common/graph/Traverser.java
0d1383
+++ b/android/guava/src/com/google/common/graph/Traverser.java
0d1383
@@ -60,9 +60,6 @@ import java.util.Set;
0d1383
  * @since 23.1
0d1383
  */
0d1383
 
0d1383
-(
0d1383
-    "Call forGraph or forTree, passing a lambda or a Graph with the desired edges (built with"
0d1383
-        + " GraphBuilder)")
0d1383
 public abstract class Traverser<N> {
0d1383
   private final SuccessorsFunction<N> successorFunction;
0d1383
 
0d1383
diff --git a/android/guava/src/com/google/common/primitives/Doubles.java b/android/guava/src/com/google/common/primitives/Doubles.java
0d1383
index d99300b..2cab6b8 100644
0d1383
--- a/android/guava/src/com/google/common/primitives/Doubles.java
0d1383
+++ b/android/guava/src/com/google/common/primitives/Doubles.java
0d1383
@@ -208,8 +208,6 @@ public final class Doubles extends DoublesMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static double min(double... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     double min = array[0];
0d1383
@@ -228,8 +226,6 @@ public final class Doubles extends DoublesMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static double max(double... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     double max = array[0];
0d1383
diff --git a/android/guava/src/com/google/common/primitives/Floats.java b/android/guava/src/com/google/common/primitives/Floats.java
0d1383
index 6166813..aa293dc 100644
0d1383
--- a/android/guava/src/com/google/common/primitives/Floats.java
0d1383
+++ b/android/guava/src/com/google/common/primitives/Floats.java
0d1383
@@ -205,8 +205,6 @@ public final class Floats extends FloatsMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static float min(float... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     float min = array[0];
0d1383
@@ -225,8 +223,6 @@ public final class Floats extends FloatsMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static float max(float... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     float max = array[0];
0d1383
diff --git a/android/guava/src/com/google/common/primitives/Ints.java b/android/guava/src/com/google/common/primitives/Ints.java
0d1383
index 511ec2b..f7f5ce3 100644
0d1383
--- a/android/guava/src/com/google/common/primitives/Ints.java
0d1383
+++ b/android/guava/src/com/google/common/primitives/Ints.java
0d1383
@@ -219,8 +219,6 @@ public final class Ints extends IntsMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static int min(int... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     int min = array[0];
0d1383
@@ -240,8 +238,6 @@ public final class Ints extends IntsMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static int max(int... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     int max = array[0];
0d1383
diff --git a/android/guava/src/com/google/common/primitives/Shorts.java b/android/guava/src/com/google/common/primitives/Shorts.java
0d1383
index f07c59d..7ebc7de 100644
0d1383
--- a/android/guava/src/com/google/common/primitives/Shorts.java
0d1383
+++ b/android/guava/src/com/google/common/primitives/Shorts.java
0d1383
@@ -218,8 +218,6 @@ public final class Shorts extends ShortsMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static short min(short... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     short min = array[0];
0d1383
@@ -239,8 +237,6 @@ public final class Shorts extends ShortsMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static short max(short... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     short max = array[0];
0d1383
diff --git a/android/guava/src/com/google/common/util/concurrent/ClosingFuture.java b/android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
0d1383
index f1d1250..ca89d9d 100644
0d1383
--- a/android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
0d1383
+++ b/android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
0d1383
@@ -1203,9 +1203,6 @@ public final class ClosingFuture<V> {
0d1383
    *           .closing(executor);
0d1383
    * }
0d1383
    */
0d1383
-  // TODO(cpovirk): Use simple name instead of fully qualified after we stop building with JDK 8.
0d1383
-  @com.google.errorprone.annotations.DoNotMock(
0d1383
-      "Use ClosingFuture.whenAllSucceed() or .whenAllComplete() instead.")
0d1383
   public static class Combiner {
0d1383
 
0d1383
     private final CloseableList closeables = new CloseableList();
0d1383
diff --git a/android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java b/android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
0d1383
index 241242a..6ada4e9 100644
0d1383
--- a/android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
0d1383
+++ b/android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
0d1383
@@ -32,10 +32,6 @@ import java.util.concurrent.TimeUnit;
0d1383
  * @author Chris Povirk
0d1383
  * @since 10.0
0d1383
  */
0d1383
-(
0d1383
-    "Use TestingExecutors.sameThreadScheduledExecutor, or wrap a real Executor from "
0d1383
-        + "java.util.concurrent.Executors with MoreExecutors.listeningDecorator")
0d1383
-
0d1383
 public interface ListeningExecutorService extends ExecutorService {
0d1383
   /**
0d1383
    * @return a {@code ListenableFuture} representing pending completion of the task
0d1383
diff --git a/guava/src/com/google/common/collect/CompactHashMap.java b/guava/src/com/google/common/collect/CompactHashMap.java
0d1383
index fbf1d4d..8a88a9f 100644
0d1383
--- a/guava/src/com/google/common/collect/CompactHashMap.java
0d1383
+++ b/guava/src/com/google/common/collect/CompactHashMap.java
0d1383
@@ -109,8 +109,6 @@ class CompactHashMap<K, V> extends AbstractMap<K, V> implements Serializable {
0d1383
    * Maximum allowed false positive probability of detecting a hash flooding attack given random
0d1383
    * input.
0d1383
    */
0d1383
-  (
0d1383
-      )
0d1383
   static final double HASH_FLOODING_FPP = 0.001;
0d1383
 
0d1383
   /**
0d1383
diff --git a/guava/src/com/google/common/collect/CompactHashSet.java b/guava/src/com/google/common/collect/CompactHashSet.java
0d1383
index 9f6b3b9..7237175 100644
0d1383
--- a/guava/src/com/google/common/collect/CompactHashSet.java
0d1383
+++ b/guava/src/com/google/common/collect/CompactHashSet.java
0d1383
@@ -126,8 +126,6 @@ class CompactHashSet<E> extends AbstractSet<E> implements Serializable {
0d1383
    * Maximum allowed false positive probability of detecting a hash flooding attack given random
0d1383
    * input.
0d1383
    */
0d1383
-  (
0d1383
-      )
0d1383
   static final double HASH_FLOODING_FPP = 0.001;
0d1383
 
0d1383
   /**
0d1383
diff --git a/guava/src/com/google/common/graph/Traverser.java b/guava/src/com/google/common/graph/Traverser.java
0d1383
index 7a40bdd..2b3f60c 100644
0d1383
--- a/guava/src/com/google/common/graph/Traverser.java
0d1383
+++ b/guava/src/com/google/common/graph/Traverser.java
0d1383
@@ -60,9 +60,6 @@ import java.util.Set;
0d1383
  * @since 23.1
0d1383
  */
0d1383
 
0d1383
-(
0d1383
-    "Call forGraph or forTree, passing a lambda or a Graph with the desired edges (built with"
0d1383
-        + " GraphBuilder)")
0d1383
 public abstract class Traverser<N> {
0d1383
   private final SuccessorsFunction<N> successorFunction;
0d1383
 
0d1383
diff --git a/guava/src/com/google/common/primitives/Doubles.java b/guava/src/com/google/common/primitives/Doubles.java
0d1383
index 8317163..3b157ba 100644
0d1383
--- a/guava/src/com/google/common/primitives/Doubles.java
0d1383
+++ b/guava/src/com/google/common/primitives/Doubles.java
0d1383
@@ -210,8 +210,6 @@ public final class Doubles extends DoublesMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static double min(double... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     double min = array[0];
0d1383
@@ -230,8 +228,6 @@ public final class Doubles extends DoublesMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static double max(double... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     double max = array[0];
0d1383
diff --git a/guava/src/com/google/common/primitives/Floats.java b/guava/src/com/google/common/primitives/Floats.java
0d1383
index 7578aa8..60a6da3 100644
0d1383
--- a/guava/src/com/google/common/primitives/Floats.java
0d1383
+++ b/guava/src/com/google/common/primitives/Floats.java
0d1383
@@ -205,8 +205,6 @@ public final class Floats extends FloatsMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static float min(float... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     float min = array[0];
0d1383
@@ -225,8 +223,6 @@ public final class Floats extends FloatsMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static float max(float... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     float max = array[0];
0d1383
diff --git a/guava/src/com/google/common/primitives/Ints.java b/guava/src/com/google/common/primitives/Ints.java
0d1383
index f2a0cad..0e4ea1f 100644
0d1383
--- a/guava/src/com/google/common/primitives/Ints.java
0d1383
+++ b/guava/src/com/google/common/primitives/Ints.java
0d1383
@@ -221,8 +221,6 @@ public final class Ints extends IntsMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static int min(int... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     int min = array[0];
0d1383
@@ -242,8 +240,6 @@ public final class Ints extends IntsMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static int max(int... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     int max = array[0];
0d1383
diff --git a/guava/src/com/google/common/primitives/Shorts.java b/guava/src/com/google/common/primitives/Shorts.java
0d1383
index f07c59d..7ebc7de 100644
0d1383
--- a/guava/src/com/google/common/primitives/Shorts.java
0d1383
+++ b/guava/src/com/google/common/primitives/Shorts.java
0d1383
@@ -218,8 +218,6 @@ public final class Shorts extends ShortsMethodsForWeb {
0d1383
    *     the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static short min(short... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     short min = array[0];
0d1383
@@ -239,8 +237,6 @@ public final class Shorts extends ShortsMethodsForWeb {
0d1383
    *     in the array
0d1383
    * @throws IllegalArgumentException if {@code array} is empty
0d1383
    */
0d1383
-  (
0d1383
-      "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.")
0d1383
   public static short max(short... array) {
0d1383
     checkArgument(array.length > 0);
0d1383
     short max = array[0];
0d1383
diff --git a/guava/src/com/google/common/util/concurrent/ClosingFuture.java b/guava/src/com/google/common/util/concurrent/ClosingFuture.java
0d1383
index 0a867aa..fdb3887 100644
0d1383
--- a/guava/src/com/google/common/util/concurrent/ClosingFuture.java
0d1383
+++ b/guava/src/com/google/common/util/concurrent/ClosingFuture.java
0d1383
@@ -1201,9 +1201,6 @@ public final class ClosingFuture<V> {
0d1383
    *           .closing(executor);
0d1383
    * }
0d1383
    */
0d1383
-  // TODO(cpovirk): Use simple name instead of fully qualified after we stop building with JDK 8.
0d1383
-  @com.google.errorprone.annotations.DoNotMock(
0d1383
-      "Use ClosingFuture.whenAllSucceed() or .whenAllComplete() instead.")
0d1383
   public static class Combiner {
0d1383
 
0d1383
     private final CloseableList closeables = new CloseableList();
0d1383
diff --git a/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java b/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
0d1383
index 241242a..6ada4e9 100644
0d1383
--- a/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
0d1383
+++ b/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
0d1383
@@ -32,10 +32,6 @@ import java.util.concurrent.TimeUnit;
0d1383
  * @author Chris Povirk
0d1383
  * @since 10.0
0d1383
  */
0d1383
-(
0d1383
-    "Use TestingExecutors.sameThreadScheduledExecutor, or wrap a real Executor from "
0d1383
-        + "java.util.concurrent.Executors with MoreExecutors.listeningDecorator")
0d1383
-
0d1383
 public interface ListeningExecutorService extends ExecutorService {
0d1383
   /**
0d1383
    * @return a {@code ListenableFuture} representing pending completion of the task
0d1383
-- 
0d1383
2.29.2
0d1383