Skip to content

Commit

Permalink
Decrease visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Mar 14, 2021
1 parent 65ea927 commit d59cebc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* in a {@code UndeclaredThrowableException} so that this class can get
* access to the cause.
*/
@Deprecated
class ChainingListenableFuture<I, O>
extends AbstractFuture<O> implements Runnable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
package org.jenkinsci.plugins.workflow.support.concurrent;

import com.google.common.annotations.GwtCompatible;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import java.util.concurrent.Executor;

/**
* An {@link Executor} that runs each task in the thread that invokes {@link Executor#execute
* execute}.
*/
@GwtCompatible
@Restricted(NoExternalUse.class)
enum DirectExecutor implements Executor {
INSTANCE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
*
* @author Guava
*/
@Deprecated
public abstract class Futures {
/**
* Registers separate success and failure callbacks to be run when the {@code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* each component future to fill out the value in the List when that future
* completes.
*/
@Deprecated
class ListFuture<V> extends AbstractFuture<List<V>> {
ImmutableList<? extends ListenableFuture<? extends V>> futures;
final boolean allMustSucceed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package org.jenkinsci.plugins.workflow.support.concurrent;

import com.google.common.annotations.GwtCompatible;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadFactory;
Expand All @@ -30,6 +32,7 @@
* @since 3.0
*/
@GwtCompatible(emulated = true)
@Restricted(NoExternalUse.class)
public final class MoreExecutors {
private MoreExecutors() {}

Expand Down

0 comments on commit d59cebc

Please sign in to comment.