aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/UserServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-04-17 08:39:21 +0300
committerGravatar Vitaly Takmazov2021-04-17 08:39:21 +0300
commit7203299e6ec544d36f4889e02b946bb9b6061f09 (patch)
treec816307ba3c0b48475fdb32b93ceb91d862c924b /src/main/java/com/juick/service/UserServiceImpl.java
parent7412ab820803908297db14ec8f9c8e9e1d339003 (diff)
Cleanup deprecated usage of third-party libraries
Diffstat (limited to 'src/main/java/com/juick/service/UserServiceImpl.java')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java
index a86b22a6..7d215260 100644
--- a/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/src/main/java/com/juick/service/UserServiceImpl.java
@@ -428,9 +428,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
List<Integer> list = getJdbcTemplate().queryForList(
"SELECT 1 FROM bl_users WHERE (user_id = ? AND bl_user_id = ?) "
+ "OR (user_id = ? AND bl_user_id = ?)",
- new Object[]{uid, uid2, uid2, uid},
- Integer.class);
-
+ Integer.class, uid, uid2, uid2, uid);
return !list.isEmpty() && list.get(0) == 1;
}