File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
batch/snippets/src/test/java Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2727import java .time .Instant ;
2828import java .time .OffsetDateTime ;
2929import java .time .temporal .ChronoUnit ;
30+ import java .util .ArrayList ;
31+ import java .util .Arrays ;
3032import java .util .List ;
3133import java .util .concurrent .ExecutionException ;
3234import java .util .concurrent .TimeUnit ;
3537public class Util {
3638
3739 private static final int DELETION_THRESHOLD_TIME_HOURS = 24 ;
38- private static final List <State > WAIT_STATES = List . of ( State . STATE_UNSPECIFIED , State . QUEUED ,
39- State .RUNNING , State .SCHEDULED );
40+ private static final List <State > WAIT_STATES = new ArrayList <>(
41+ Arrays . asList ( State .STATE_UNSPECIFIED , State . QUEUED , State . RUNNING , State .SCHEDULED ) );
4042
4143 // Delete templates which starts with the given prefixToDelete and
4244 // has creation timestamp >24 hours.
You can’t perform that action at this time.
0 commit comments