Skip to content

Commit 34e3226

Browse files
committed
Remove unnecessary interface modifier
1 parent e0f1978 commit 34e3226

File tree

34 files changed

+87
-87
lines changed

34 files changed

+87
-87
lines changed

src/test/java/org/apache/ibatis/submitted/blocking_cache/PersonMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
public interface PersonMapper {
2525

2626
@Select("select id, firstname, lastname from person")
27-
public List<Person> findAll();
27+
List<Person> findAll();
2828
}

src/test/java/org/apache/ibatis/submitted/cache/PersonMapper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@
2828
public interface PersonMapper {
2929

3030
@Insert("insert into person (id, firstname, lastname) values (#{id}, #{firstname}, #{lastname})")
31-
public void create(Person person);
31+
void create(Person person);
3232

3333
@Insert("insert into person (id, firstname, lastname) values (#{id}, #{firstname}, #{lastname})")
3434
@Options
35-
public void createWithOptions(Person person);
35+
void createWithOptions(Person person);
3636

3737
@Insert("insert into person (id, firstname, lastname) values (#{id}, #{firstname}, #{lastname})")
3838
@Options(flushCache = FlushCachePolicy.FALSE)
39-
public void createWithoutFlushCache(Person person);
39+
void createWithoutFlushCache(Person person);
4040

4141
@Delete("delete from person where id = #{id}")
42-
public void delete(int id);
42+
void delete(int id);
4343

4444
@Select("select id, firstname, lastname from person")
45-
public List<Person> findAll();
45+
List<Person> findAll();
4646

4747
@Select("select id, firstname, lastname from person")
4848
@Options(flushCache = FlushCachePolicy.TRUE)
49-
public List<Person> findWithFlushCache();
49+
List<Person> findWithFlushCache();
5050
}

src/test/java/org/apache/ibatis/submitted/cglib_lazy_error/PersonMapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
public interface PersonMapper {
1919

20-
public Person selectById(int id);
20+
Person selectById(int id);
2121

22-
public Person selectByStringId(String id);
22+
Person selectByStringId(String id);
2323

24-
public int insertPerson(Person person);
24+
int insertPerson(Person person);
2525

2626
}

src/test/java/org/apache/ibatis/submitted/column_forwarding/Mapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
import org.apache.ibatis.annotations.Param;
1919

2020
public interface Mapper {
21-
public User getUser(@Param("id") int id);
21+
User getUser(@Param("id") int id);
2222
}

src/test/java/org/apache/ibatis/submitted/complex_column/PersonMapper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@
1919

2020
public interface PersonMapper {
2121

22-
public Person getWithoutComplex(Long id);
23-
public Person getWithComplex(Long id);
24-
public Person getParentWithComplex(Person person);
22+
Person getWithoutComplex(Long id);
23+
Person getWithComplex(Long id);
24+
Person getParentWithComplex(Person person);
2525

2626
@Select({
2727
"SELECT id, firstName, lastName, parent_id, parent_firstName, parent_lastName",
2828
"FROM Person",
2929
"WHERE id = #{id,jdbcType=INTEGER}"
3030
})
3131
@ResultMap("personMapComplex")
32-
public Person getWithComplex2(Long id);
32+
Person getWithComplex2(Long id);
3333

3434
@Select({
3535
"SELECT id, firstName, lastName, parent_id, parent_firstName, parent_lastName",
3636
"FROM Person",
3737
"WHERE id = #{id,jdbcType=INTEGER}"
3838
})
3939
@ResultMap("org.apache.ibatis.submitted.complex_column.PersonMapper.personMapComplex")
40-
public Person getWithComplex3(Long id);
40+
Person getWithComplex3(Long id);
4141

4242

4343
@Select({

src/test/java/org/apache/ibatis/submitted/default_method/Mapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ default User defaultGetUser(Object... args) {
3030
return getUserById((Integer) args[0]);
3131
}
3232

33-
static interface SubMapper extends Mapper {
33+
interface SubMapper extends Mapper {
3434
default User defaultGetUser(Object... args) {
3535
return getUserByIdAndName((String) args[0], (Integer) args[1]);
3636
}

src/test/java/org/apache/ibatis/submitted/deferload_common_property/ChildMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
import java.util.List;
1919

2020
public interface ChildMapper {
21-
public List<Child> selectAll();
21+
List<Child> selectAll();
2222
}

src/test/java/org/apache/ibatis/submitted/deferload_common_property/FatherMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
package org.apache.ibatis.submitted.deferload_common_property;
1717

1818
public interface FatherMapper {
19-
public Father selectById(Integer id);
19+
Father selectById(Integer id);
2020
}

src/test/java/org/apache/ibatis/submitted/disallowdotsonnames/PersonMapper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
import java.util.List;
1919

2020
public interface PersonMapper {
21-
public Person selectByIdFlush(int id);
21+
Person selectByIdFlush(int id);
2222

23-
public Person selectByIdNoFlush(int id);
23+
Person selectByIdNoFlush(int id);
2424

25-
public List<Person> selectAllFlush();
25+
List<Person> selectAllFlush();
2626

27-
public List<Person> selectAllNoFlush();
27+
List<Person> selectAllNoFlush();
2828
}

src/test/java/org/apache/ibatis/submitted/enumtypehandler_on_map/PersonMapper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
public interface PersonMapper {
2323

24-
public static interface TypeName {
25-
public Person.Type getType();
26-
public String getName();
24+
interface TypeName {
25+
Person.Type getType();
26+
String getName();
2727
}
2828

29-
public List<Person> getByType(@Param("type") Person.Type type, @Param("name") String name);
30-
public List<Person> getByTypeNoParam(TypeName typeName);
29+
List<Person> getByType(@Param("type") Person.Type type, @Param("name") String name);
30+
List<Person> getByTypeNoParam(TypeName typeName);
3131

3232
}

0 commit comments

Comments
 (0)