Skip to content

Commit 335a72c

Browse files
authored
Merge pull request #2299 from Fudeveloper/words-correction
Correct the spellings in cache module and io module datasource module.
2 parents e01e0b6 + efcc0d9 commit 335a72c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/apache/ibatis/cache/decorators/BlockingCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* It sets a lock over a cache key when the element is not found in cache.
3030
* This way, other threads will wait until this element is filled instead of hitting the database.
3131
*
32-
* <p>By its nature, this implementation can cause deadlock when used incorrecly.
32+
* <p>By its nature, this implementation can cause deadlock when used incorrectly.
3333
*
3434
* @author Eduardo Macarron
3535
*

src/main/java/org/apache/ibatis/datasource/pooled/PoolState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public synchronized int getActiveConnectionCount() {
8484
@Override
8585
public synchronized String toString() {
8686
StringBuilder builder = new StringBuilder();
87-
builder.append("\n===CONFINGURATION==============================================");
87+
builder.append("\n===CONFIGURATION==============================================");
8888
builder.append("\n jdbcDriver ").append(dataSource.getDriver());
8989
builder.append("\n jdbcUrl ").append(dataSource.getUrl());
9090
builder.append("\n jdbcUsername ").append(dataSource.getUsername());

src/main/java/org/apache/ibatis/io/DefaultVFS.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public List<String> list(URL url, String path) throws IOException {
146146
prefix = prefix + "/";
147147
}
148148

149-
// Iterate over immediate children, adding files and recursing into directories
149+
// Iterate over immediate children, adding files and recurring into directories
150150
for (String child : children) {
151151
String resourcePath = path + "/" + child;
152152
resources.add(resourcePath);
@@ -271,7 +271,7 @@ protected URL findJarForResource(URL url) throws MalformedURLException {
271271
try {
272272
file = new File(URLEncoder.encode(jarUrl.toString(), "UTF-8"));
273273
} catch (UnsupportedEncodingException e) {
274-
throw new RuntimeException("Unsupported encoding? UTF-8? That's unpossible.");
274+
throw new RuntimeException("Unsupported encoding? UTF-8? That's impossible.");
275275
}
276276
}
277277

0 commit comments

Comments
 (0)