File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
main/java/org/apache/ibatis/scripting/defaults
test/java/org/apache/ibatis/jdbc Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2009-2020 the original author or authors.
2
+ * Copyright 2009-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2009-2020 the original author or authors.
2
+ * Copyright 2009-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
15
15
*/
16
16
package org .apache .ibatis .jdbc ;
17
17
18
- import static org .junit .jupiter .api .Assertions .*;
18
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
19
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
19
20
20
21
import java .sql .Connection ;
21
22
import java .sql .PreparedStatement ;
@@ -138,7 +139,7 @@ void shouldReconnectWhenServerKilledLeakedConnection() throws Exception {
138
139
139
140
private void executeQuery (Connection con ) throws SQLException {
140
141
try (PreparedStatement st = con .prepareStatement ("select 1" );
141
- ResultSet rs = st .executeQuery ()) {
142
+ ResultSet rs = st .executeQuery ()) {
142
143
while (rs .next ()) {
143
144
assertEquals (1 , rs .getInt (1 ));
144
145
}
You can’t perform that action at this time.
0 commit comments