remove unnecessary casts
@@ -412,7 +412,7 @@ | ||
412 | 412 | } |
413 | 413 | |
414 | 414 | public static int javaTypeToSqlType(Class<?> javaType) { |
415 | - Integer sqlType = (Integer) javaTypeToSqlTypeMap.get(javaType); | |
415 | + Integer sqlType = javaTypeToSqlTypeMap.get(javaType); | |
416 | 416 | if (sqlType != null) { |
417 | 417 | return sqlType.intValue(); |
418 | 418 | } |
@@ -124,8 +124,7 @@ | ||
124 | 124 | |
125 | 125 | // @Override |
126 | 126 | public Class<?>[] getBindVariableTypes() { |
127 | - return (Class<?>[]) bindVariableTypes | |
128 | - .toArray(new Class<?>[bindVariableTypes.size()]); | |
127 | + return bindVariableTypes.toArray(new Class<?>[bindVariableTypes.size()]); | |
129 | 128 | } |
130 | 129 | |
131 | 130 | // @Override |
@@ -214,7 +214,7 @@ | ||
214 | 214 | * @return 一番上のノード |
215 | 215 | */ |
216 | 216 | protected Node pop() { |
217 | - return (Node) nodeStack.pop(); | |
217 | + return nodeStack.pop(); | |
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
@@ -223,7 +223,7 @@ | ||
223 | 223 | * @return 一番上のノード |
224 | 224 | */ |
225 | 225 | protected Node peek() { |
226 | - return (Node) nodeStack.peek(); | |
226 | + return nodeStack.peek(); | |
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
@@ -107,9 +107,6 @@ | ||
107 | 107 | } catch (SQLException ex) { |
108 | 108 | throw new SQLRuntimeException(ex); |
109 | 109 | |
110 | - } catch(RuntimeException ex){ | |
111 | - throw (RuntimeException) ex; | |
112 | - | |
113 | 110 | } catch(Exception ex){ |
114 | 111 | throw new RuntimeException(ex); |
115 | 112 |
@@ -150,7 +147,7 @@ | ||
150 | 147 | throw new SQLRuntimeException(ex); |
151 | 148 | |
152 | 149 | } catch(RuntimeException ex){ |
153 | - throw (RuntimeException) ex; | |
150 | + throw ex; | |
154 | 151 | |
155 | 152 | } catch(Exception ex){ |
156 | 153 | throw new RuntimeException(ex); |
@@ -190,9 +187,6 @@ | ||
190 | 187 | } catch (SQLException ex) { |
191 | 188 | throw new SQLRuntimeException(ex); |
192 | 189 | |
193 | - } catch(RuntimeException ex){ | |
194 | - throw (RuntimeException) ex; | |
195 | - | |
196 | 190 | } catch(Exception ex){ |
197 | 191 | throw new RuntimeException(ex); |
198 | 192 |