7979 * method and cast the result properly. We provide a {@link SqlColumn#cast(SqlColumn)} method to aid with this
8080 * process. For example, overriding the {@code descending} method could look like this:
8181 *
82- * <p>
8382 * <pre>
8483 * {@code
8584 * @Override
@@ -237,8 +236,8 @@ public Optional<RenderingStrategy> renderingStrategy() {
237236 * and method chaining would not work. This is a workaround for Java's lack of reification.
238237 *
239238 * @param typeHandler the type handler to set
240- * @return a new column instance with the specified type handler
241239 * @param <S> the type of the new column (will be the same as T)
240+ * @return a new column instance with the specified type handler
242241 */
243242 public <S > SqlColumn <S > withTypeHandler (String typeHandler ) {
244243 return cast (copyBuilder ().withTypeHandler (typeHandler ).build ());
@@ -253,8 +252,8 @@ public <S> SqlColumn<S> withTypeHandler(String typeHandler) {
253252 * and method chaining would not work. This is a workaround for Java's lack of reification.
254253 *
255254 * @param renderingStrategy the rendering strategy to set
256- * @return a new column instance with the specified type handler
257255 * @param <S> the type of the new column (will be the same as T)
256+ * @return a new column instance with the specified type handler
258257 */
259258 public <S > SqlColumn <S > withRenderingStrategy (RenderingStrategy renderingStrategy ) {
260259 return cast (copyBuilder ().withRenderingStrategy (renderingStrategy ).build ());
@@ -271,8 +270,8 @@ public <S> SqlColumn<S> withRenderingStrategy(RenderingStrategy renderingStrateg
271270 * and method chaining would not work. This is a workaround for Java's lack of reification.
272271 *
273272 * @param parameterTypeConverter the parameter type converter to set
274- * @return a new column instance with the specified type handler
275273 * @param <S> the type of the new column (will be the same as T)
274+ * @return a new column instance with the specified type handler
276275 */
277276 @ SuppressWarnings ("unchecked" )
278277 public <S > SqlColumn <S > withParameterTypeConverter (ParameterTypeConverter <S , ?> parameterTypeConverter ) {
@@ -292,8 +291,8 @@ public <S> SqlColumn<S> withParameterTypeConverter(ParameterTypeConverter<S, ?>
292291 * and method chaining would not work. This is a workaround for Java's lack of reification.
293292 *
294293 * @param javaType the Java type to set
295- * @return a new column instance with the specified type handler
296294 * @param <S> the type of the new column (will be the same as T)
295+ * @return a new column instance with the specified type handler
297296 */
298297 @ SuppressWarnings ("unchecked" )
299298 public <S > SqlColumn <S > withJavaType (Class <S > javaType ) {
@@ -312,8 +311,8 @@ public <S> SqlColumn<S> withJavaType(Class<S> javaType) {
312311 * and method chaining would not work. This is a workaround for Java's lack of reification.
313312 *
314313 * @param javaProperty the Java property to set
315- * @return a new column instance with the specified type handler
316314 * @param <S> the type of the new column (will be the same as T)
315+ * @return a new column instance with the specified type handler
317316 */
318317 public <S > SqlColumn <S > withJavaProperty (String javaProperty ) {
319318 return cast (copyBuilder ().withJavaProperty (javaProperty ).build ());
@@ -366,7 +365,7 @@ public static <T> SqlColumn<T> of(String name, SqlTable table, JDBCType jdbcType
366365 .build ();
367366 }
368367
369- public static abstract class AbstractBuilder <T , C extends SqlColumn <T >, B extends AbstractBuilder <T , C , B >> {
368+ public abstract static class AbstractBuilder <T , C extends SqlColumn <T >, B extends AbstractBuilder <T , C , B >> {
370369 protected @ Nullable String name ;
371370 protected @ Nullable SqlTable table ;
372371 protected @ Nullable JDBCType jdbcType ;
0 commit comments