From d12996a6a84d3aaffd4b5eed24012f13ed76f11c Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 26 Oct 2020 18:18:33 +0100 Subject: [PATCH] Polishing --- .../java/org/springframework/jdbc/core/SqlProvider.java | 4 ++-- .../springframework/jdbc/core/namedparam/ParsedSql.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlProvider.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlProvider.java index 0b345033cdd..e060bc1522a 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlProvider.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2020 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. @@ -36,7 +36,7 @@ public interface SqlProvider { /** * Return the SQL string for this object, i.e. * typically the SQL used for creating statements. - * @return the SQL string, or {@code null} + * @return the SQL string, or {@code null} if not available */ @Nullable String getSql(); diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java index 83f5d3dcb86..d862838cc38 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2020 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. @@ -28,11 +28,11 @@ import java.util.List; */ public class ParsedSql { - private String originalSql; + private final String originalSql; - private List parameterNames = new ArrayList<>(); + private final List parameterNames = new ArrayList<>(); - private List parameterIndexes = new ArrayList<>(); + private final List parameterIndexes = new ArrayList<>(); private int namedParameterCount;