Polishing

This commit is contained in:
Juergen Hoeller
2020-10-26 18:18:33 +01:00
parent d1d37534bf
commit 65577671bc
2 changed files with 6 additions and 6 deletions

View File

@@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public interface SqlProvider {
/** /**
* Return the SQL string for this object, i.e. * Return the SQL string for this object, i.e.
* typically the SQL used for creating statements. * typically the SQL used for creating statements.
* @return the SQL string, or {@code null} * @return the SQL string, or {@code null} if not available
*/ */
String getSql(); String getSql();

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 { public class ParsedSql {
private String originalSql; private final String originalSql;
private List<String> parameterNames = new ArrayList<String>(); private final List<String> parameterNames = new ArrayList<String>();
private List<int[]> parameterIndexes = new ArrayList<int[]>(); private final List<int[]> parameterIndexes = new ArrayList<int[]>();
private int namedParameterCount; private int namedParameterCount;