Skip to content

Commit 8070c60

Browse files
committed
typo: fix some typo
1 parent f377db0 commit 8070c60

File tree

16 files changed

+25
-25
lines changed

16 files changed

+25
-25
lines changed

src/main/java/org/apache/ibatis/builder/annotation/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
* limitations under the License.
1515
*/
1616
/**
17-
* Parses annotions to create a Configuration.
17+
* Parses annotations to create a Configuration.
1818
*/
1919
package org.apache.ibatis.builder.annotation;

src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void executeStatement(String command) throws SQLException {
248248
}
249249
try {
250250
boolean hasResults = statement.execute(sql);
251-
// DO NOT try to 'imporove' the condition even if IDE tells you to!
251+
// DO NOT try to 'improve' the condition even if IDE tells you to!
252252
// It's important that getUpdateCount() is called here.
253253
while (!(!hasResults && statement.getUpdateCount() == -1)) {
254254
checkWarnings(statement);

src/test/java/org/apache/ibatis/binding/BindingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ void shouldCacheMapperMethod() throws Exception {
626626
void shouldGetBlogsWithAuthorsAndPosts() {
627627
try (SqlSession session = sqlSessionFactory.openSession()) {
628628
BoundBlogMapper mapper = session.getMapper(BoundBlogMapper.class);
629-
List<Blog> blogs = mapper.selectBlogsWithAutorAndPosts();
629+
List<Blog> blogs = mapper.selectBlogsWithAuthorAndPosts();
630630
assertEquals(2, blogs.size());
631631
assertTrue(blogs.get(0) instanceof Proxy);
632632
assertEquals(101, blogs.get(0).getAuthor().getId());
@@ -643,7 +643,7 @@ void shouldGetBlogsWithAuthorsAndPosts() {
643643
void shouldGetBlogsWithAuthorsAndPostsEagerly() {
644644
try (SqlSession session = sqlSessionFactory.openSession()) {
645645
BoundBlogMapper mapper = session.getMapper(BoundBlogMapper.class);
646-
List<Blog> blogs = mapper.selectBlogsWithAutorAndPostsEagerly();
646+
List<Blog> blogs = mapper.selectBlogsWithAuthorAndPostsEagerly();
647647
assertEquals(2, blogs.size());
648648
assertFalse(blogs.get(0) instanceof Factory);
649649
assertEquals(101, blogs.get(0).getAuthor().getId());

src/test/java/org/apache/ibatis/binding/BoundBlogMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Blog selectBlogWithAParamNamedValue(@Param("column") String column, @Param("id")
253253
@Result(property = "posts", column = "id", many = @Many(select = "selectPostsById"))
254254
})
255255
// @formatter:on
256-
List<Blog> selectBlogsWithAutorAndPosts();
256+
List<Blog> selectBlogsWithAuthorAndPosts();
257257

258258
// @formatter:off
259259
@Select({
@@ -265,6 +265,6 @@ Blog selectBlogWithAParamNamedValue(@Param("column") String column, @Param("id")
265265
@Result(property = "posts", column = "id", many = @Many(select = "selectPostsById", fetchType = FetchType.EAGER))
266266
})
267267
// @formatter:on
268-
List<Blog> selectBlogsWithAutorAndPostsEagerly();
268+
List<Blog> selectBlogsWithAuthorAndPostsEagerly();
269269

270270
}

src/test/java/org/apache/ibatis/executor/loader/CglibProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void shouldLetCallALoadedProperty() {
7171
}
7272

7373
@Test
74-
void shouldSerizalizeADeserlizaliedProxy() throws Exception {
74+
void shouldSerializeADeserializedProxy() throws Exception {
7575
Object proxy = ((CglibProxyFactory) proxyFactory).createDeserializationProxy(author, new HashMap<>(),
7676
new DefaultObjectFactory(), new ArrayList<>(), new ArrayList<>());
7777
Author author2 = (Author) deserialize(serialize((Serializable) proxy));

src/test/java/org/apache/ibatis/executor/loader/JavassistProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void shouldLetCallALoadedProperty() {
6969
}
7070

7171
@Test
72-
void shouldSerizalizeADeserlizaliedProxy() throws Exception {
72+
void shouldSerializeADeserializedProxy() throws Exception {
7373
Object proxy = ((JavassistProxyFactory) proxyFactory).createDeserializationProxy(author, new HashMap<>(),
7474
new DefaultObjectFactory(), new ArrayList<>(), new ArrayList<>());
7575
Author author2 = (Author) deserialize(serialize((Serializable) proxy));

src/test/java/org/apache/ibatis/executor/loader/SerializableProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void shouldSerializeAProxyForABeanWithoutDefaultConstructorAndUnloadedProperties
110110
}
111111

112112
@Test
113-
void shouldSerizaliceAFullLoadedObjectToOriginalClass() throws Exception {
113+
void shouldSerializeAFullLoadedObjectToOriginalClass() throws Exception {
114114
Object proxy = proxyFactory.createProxy(author, new ResultLoaderMap(), new Configuration(),
115115
new DefaultObjectFactory(), new ArrayList<>(), new ArrayList<>());
116116
Object proxy2 = deserialize(serialize((Serializable) proxy));

src/test/java/org/apache/ibatis/io/ExternalResourcesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void testGetConfiguredTemplate() {
9191
templateName = ExternalResources.getConfiguredTemplate(tempFile.getAbsolutePath(), "new_command.template");
9292
assertEquals("templates/col_new_template_migration.sql", templateName);
9393
} catch (Exception e) {
94-
fail("Test failed with execption: " + e.getMessage());
94+
fail("Test failed with exception: " + e.getMessage());
9595
}
9696
}
9797

src/test/java/org/apache/ibatis/jdbc/ScriptRunnerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void shouldReturnWarningIfEndOfLineTerminatorNotFound() throws Exception {
115115
}
116116

117117
@Test
118-
void commentAferStatementDelimiterShouldNotCauseRunnerFail() throws Exception {
118+
void commentAfterStatementDelimiterShouldNotCauseRunnerFail() throws Exception {
119119
DataSource ds = createUnpooledDataSource(JPETSTORE_PROPERTIES);
120120
String resource = "org/apache/ibatis/jdbc/ScriptCommentAfterEOLTerminator.sql";
121121
try (Connection conn = ds.getConnection(); Reader reader = Resources.getResourceAsReader(resource)) {
@@ -185,7 +185,7 @@ void testLogging() throws Exception {
185185
}
186186

187187
@Test
188-
void testLoggingFullScipt() throws Exception {
188+
void testLoggingFullScript() throws Exception {
189189
DataSource ds = createUnpooledDataSource(JPETSTORE_PROPERTIES);
190190
try (Connection conn = ds.getConnection()) {
191191
ScriptRunner runner = new ScriptRunner(conn);

src/test/java/org/apache/ibatis/mapping/ResultMappingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void shouldThrowErrorWhenBothResultMapAndNestedSelectAreSet() {
3838

3939
// Issue 4: column is mandatory on nested queries
4040
@Test
41-
void shouldFailWithAMissingColumnInNetstedSelect() {
41+
void shouldFailWithAMissingColumnInNestedSelect() {
4242
Assertions.assertThrows(IllegalStateException.class,
4343
() -> new ResultMapping.Builder(configuration, "prop").nestedQueryId("nested query ID").build());
4444
}

0 commit comments

Comments
 (0)