Remove usage of raw parametrized types
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -152,7 +152,7 @@ public class JobLauncherTestUtils {
|
||||
*/
|
||||
public JobParameters getUniqueJobParameters() {
|
||||
Map<String, JobParameter<?>> parameters = new HashMap<>();
|
||||
parameters.put("random", new JobParameter(this.secureRandom.nextLong(), Long.class));
|
||||
parameters.put("random", new JobParameter<>(this.secureRandom.nextLong(), Long.class));
|
||||
return new JobParameters(parameters);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class JobRepositoryTestUtils {
|
||||
|
||||
@Override
|
||||
public JobParameters getNext(@Nullable JobParameters parameters) {
|
||||
return new JobParameters(Collections.singletonMap("count", new JobParameter(count++, Long.class)));
|
||||
return new JobParameters(Collections.singletonMap("count", new JobParameter<>(count++, Long.class)));
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -178,7 +178,7 @@ public class StepRunner {
|
||||
*/
|
||||
private JobParameters makeUniqueJobParameters() {
|
||||
Map<String, JobParameter<?>> parameters = new HashMap<>();
|
||||
parameters.put("timestamp", new JobParameter(new Date().getTime(), Long.class));
|
||||
parameters.put("timestamp", new JobParameter<>(new Date().getTime(), Long.class));
|
||||
return new JobParameters(parameters);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user