Skip to content

Commit 7b68207

Browse files
committed
Standardize on Guava for VisibleForTesting annotation
1 parent 7727df8 commit 7b68207

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

presto-main/src/main/java/com/facebook/presto/execution/SqlQueryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
import com.facebook.presto.spi.resourceGroups.ResourceGroupQueryLimits;
3535
import com.facebook.presto.sql.planner.Plan;
3636
import com.facebook.presto.version.EmbedVersion;
37+
import com.google.common.annotations.VisibleForTesting;
3738
import com.google.common.collect.Ordering;
3839
import com.google.common.util.concurrent.ListenableFuture;
3940
import io.airlift.units.DataSize;
4041
import io.airlift.units.Duration;
41-
import org.jheaps.annotations.VisibleForTesting;
4242
import org.weakref.jmx.Flatten;
4343
import org.weakref.jmx.Managed;
4444
import org.weakref.jmx.Nested;

presto-main/src/main/java/com/facebook/presto/memory/HighMemoryTaskKiller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
import com.facebook.presto.operator.TaskStats;
2323
import com.facebook.presto.spi.PrestoException;
2424
import com.facebook.presto.spi.QueryId;
25+
import com.google.common.annotations.VisibleForTesting;
2526
import com.google.common.base.Ticker;
2627
import com.google.common.collect.ListMultimap;
2728
import io.airlift.units.DataSize;
2829
import io.airlift.units.Duration;
29-
import org.jheaps.annotations.VisibleForTesting;
3030

3131
import javax.annotation.PostConstruct;
3232
import javax.annotation.PreDestroy;

presto-spark-base/src/main/java/com/facebook/presto/spark/execution/nativeprocess/NativeExecutionModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
import com.facebook.presto.spark.execution.shuffle.PrestoSparkShuffleInfoTranslator;
2424
import com.facebook.presto.spark.execution.task.ForNativeExecutionTask;
2525
import com.facebook.presto.spark.execution.task.NativeExecutionTaskFactory;
26+
import com.google.common.annotations.VisibleForTesting;
2627
import com.google.inject.Binder;
2728
import com.google.inject.Module;
2829
import com.google.inject.Scopes;
2930
import com.google.inject.TypeLiteral;
3031
import io.airlift.units.Duration;
31-
import org.jheaps.annotations.VisibleForTesting;
3232

3333
import java.util.Optional;
3434

src/checkstyle/presto-checks.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206

207207
<module name="IllegalImport">
208208
<property name="illegalPkgs" value="org.weakref.jmx.internal" />
209+
<property name="illegalPkgs" value="org.jheaps.annotations" />
209210
<property name="illegalPkgs" value="jersey.repackaged" />
210211
<property name="illegalPkgs" value="jdk.nashorn.internal" />
211212
<property name="illegalPkgs" value="jdk.internal" />

0 commit comments

Comments
 (0)