java.lang.Object
tech.picnic.errorprone.bugpatterns.util.Flags

public final class Flags extends Object
Helper methods for working with ErrorProneFlags.
  • Method Details

    • getList

      public static com.google.common.collect.ImmutableList<String> getList(com.google.errorprone.ErrorProneFlags errorProneFlags, String name)
      Returns the list of (comma-separated) arguments passed using the given Error Prone flag.
      Parameters:
      errorProneFlags - The full set of flags provided.
      name - The name of the flag of interest.
      Returns:
      A non-null list of provided arguments; this list is empty if the flag was not provided, or if the flag's value is the empty string.