diff options
author | 2023-01-18 11:39:05 +0300 | |
---|---|---|
committer | 2023-01-18 11:39:05 +0300 | |
commit | 118464cfdabdad2b943e959e14ceb3012642a301 (patch) | |
tree | 6b5af9ecccaabc422478a2739667bc50380bf396 /src/main/java/com/juick/service/TagServiceImpl.java | |
parent | 1c96e74ad675c3a7d1b6ab2bb01307a94b8d4212 (diff) |
Drop unused `useroptions` table
Diffstat (limited to 'src/main/java/com/juick/service/TagServiceImpl.java')
-rw-r--r-- | src/main/java/com/juick/service/TagServiceImpl.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/juick/service/TagServiceImpl.java b/src/main/java/com/juick/service/TagServiceImpl.java index e7852bc2..1f77eb81 100644 --- a/src/main/java/com/juick/service/TagServiceImpl.java +++ b/src/main/java/com/juick/service/TagServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2020, Juick + * Copyright (C) 2008-2023, Juick * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -31,7 +31,6 @@ import org.springframework.jdbc.support.KeyHolder; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; -import javax.annotation.Nonnull; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; @@ -130,7 +129,7 @@ public class TagServiceImpl extends BaseJdbcService implements TagService { : holder.getKey().intValue(); } - private class TagStatsMapper implements RowMapper<TagStats> { + private static class TagStatsMapper implements RowMapper<TagStats> { @Override public TagStats mapRow(ResultSet rs, int rowNum) throws SQLException { @@ -215,7 +214,7 @@ public class TagServiceImpl extends BaseJdbcService implements TagService { getJdbcTemplate().batchUpdate("INSERT INTO messages_tags(message_id,tag_id) VALUES (?,?)", new BatchPreparedStatementSetter() { @Override - public void setValues(@Nonnull PreparedStatement ps, int i) throws SQLException { + public void setValues(PreparedStatement ps, int i) throws SQLException { ps.setInt(1, mid); ps.setInt(2, addedTags.get(i).TID); } |