Skip to content

Commit a641c28

Browse files
author
robokaso
committed
cleaned up redundant casts
1 parent 1e39b06 commit a641c28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/JobParameters.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public JobParameters(Map<String, String> stringMap, Map<String, Long> longMap, M
7575
* @return The <code>String</code> value
7676
*/
7777
public String getString(String key) {
78-
return (String) stringMap.get(key);
78+
return stringMap.get(key);
7979
}
8080

8181
/**
@@ -85,7 +85,7 @@ public String getString(String key) {
8585
* @return The <code>Long</code> value
8686
*/
8787
public Long getLong(String key) {
88-
return (Long) longMap.get(key);
88+
return longMap.get(key);
8989
}
9090

9191
/**
@@ -95,7 +95,7 @@ public Long getLong(String key) {
9595
* @return The <code>Double</code> value
9696
*/
9797
public Double getDouble(String key) {
98-
return (Double) doubleMap.get(key);
98+
return doubleMap.get(key);
9999
}
100100

101101
/**
@@ -105,7 +105,7 @@ public Double getDouble(String key) {
105105
* @return The <code>java.util.Date</code> value
106106
*/
107107
public Date getDate(String key) {
108-
return (Date) dateMap.get(key);
108+
return dateMap.get(key);
109109
}
110110

111111
/**

0 commit comments

Comments
 (0)