deprecated code

This commit is contained in:
looly 2021-11-24 09:53:34 +08:00
parent 1e82d7bd5f
commit 3a043a261e
3 changed files with 26 additions and 21 deletions

View File

@ -22,6 +22,7 @@
* 【crypto 】 增加CipherWrapper增加setRandomissue#1958@Github
* 【core 】 Opt增加ofTry方法pr#1956@Github
* 【core 】 DateUtil.toIntSecond标记为弃用issue#I4JHPR@Gitee
* 【db 】 Db.executeBatch标记一个重载为弃用issue#I4JIPH@Gitee
*
### 🐞Bug修复
* 【core 】 修复FileResource构造fileName参数无效问题issue#1942@Github

View File

@ -239,7 +239,9 @@ public abstract class AbstractDb implements Serializable {
* @param paramsBatch 批量的参数
* @return 每个SQL执行影响的行数
* @throws SQLException SQL执行异常
* @deprecated 编译器无法区分重载
*/
@Deprecated
public int[] executeBatch(String sql, Object[]... paramsBatch) throws SQLException {
Connection conn = null;
try {

View File

@ -154,7 +154,9 @@ public class SqlExecutor {
* @param paramsBatch 批量的参数
* @return 每个SQL执行影响的行数
* @throws SQLException SQL执行异常
* @deprecated 重载导致编译器无法区分
*/
@Deprecated
public static int[] executeBatch(Connection conn, String sql, Object[]... paramsBatch) throws SQLException {
return executeBatch(conn, sql, new ArrayIter<>(paramsBatch));
}