Skip to content

Commit 6557767

Browse files
committed
Polishing
1 parent d1d3753 commit 6557767

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.
@@ -34,7 +34,7 @@ public interface SqlProvider {
3434
/**
3535
* Return the SQL string for this object, i.e.
3636
* typically the SQL used for creating statements.
37-
* @return the SQL string, or {@code null}
37+
* @return the SQL string, or {@code null} if not available
3838
*/
3939
String getSql();
4040

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-2008 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<String>();
33+
private final List<String> parameterNames = new ArrayList<String>();
3434

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

3737
private int namedParameterCount;
3838

0 commit comments

Comments
 (0)