Remove usage of raw parametrized types

This commit is contained in:
Mahmoud Ben Hassine
2023-07-04 19:03:18 +02:00
parent 5585749925
commit 167f3c427d
13 changed files with 49 additions and 49 deletions

View File

@@ -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);
}

View File

@@ -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)));
}
};

View File

@@ -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);
}