Class Flags
java.lang.Object
tech.picnic.errorprone.bugpatterns.util.Flags
Helper methods for working with
ErrorProneFlags.-
Method Summary
-
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-
nulllist of provided arguments; this list is empty if the flag was not provided, or if the flag's value is the empty string.
-