Skip to content

Commit bced103

Browse files
committed
Merge branch '3.1.x'
Closes gh-37208
2 parents 7c46867 + 768dfb2 commit bced103

File tree

1 file changed

+5
-5
lines changed
  • spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc

1 file changed

+5
-5
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc/ExampleRepository.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@
2929
* @author Stephane Nicoll
3030
*/
3131
@Repository
32-
public class ExampleRepository {
32+
class ExampleRepository {
3333

3434
private static final ExampleEntityRowMapper ROW_MAPPER = new ExampleEntityRowMapper();
3535

3636
private final JdbcTemplate jdbcTemplate;
3737

38-
public ExampleRepository(JdbcTemplate jdbcTemplate) {
38+
ExampleRepository(JdbcTemplate jdbcTemplate) {
3939
this.jdbcTemplate = jdbcTemplate;
4040
}
4141

4242
@Transactional
43-
public void save(ExampleEntity entity) {
43+
void save(ExampleEntity entity) {
4444
this.jdbcTemplate.update("insert into example (id, name) values (?, ?)", entity.getId(), entity.getName());
4545
}
4646

47-
public ExampleEntity findById(int id) {
47+
ExampleEntity findById(int id) {
4848
return this.jdbcTemplate.queryForObject("select id, name from example where id =?", ROW_MAPPER, id);
4949
}
5050

51-
public Collection<ExampleEntity> findAll() {
51+
Collection<ExampleEntity> findAll() {
5252
return this.jdbcTemplate.query("select id, name from example", ROW_MAPPER);
5353
}
5454

0 commit comments

Comments
 (0)