Skip to content

Commit 20fe1bc

Browse files
committed
Polishing
1 parent aa0a3bd commit 20fe1bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ public interface SqlProvider {
3636
/**
3737
* Return the SQL string for this object, i.e.
3838
* typically the SQL used for creating statements.
39-
* @return the SQL string, or {@code null}
39+
* @return the SQL string, or {@code null} if not available
4040
*/
4141
@Nullable
4242
String getSql();

spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,11 +28,11 @@
2828
*/
2929
public class ParsedSql {
3030

31-
private String originalSql;
31+
private final String originalSql;
3232

33-
private List<String> parameterNames = new ArrayList<>();
33+
private final List<String> parameterNames = new ArrayList<>();
3434

35-
private List<int[]> parameterIndexes = new ArrayList<>();
35+
private final List<int[]> parameterIndexes = new ArrayList<>();
3636

3737
private int namedParameterCount;
3838

0 commit comments

Comments
 (0)