Skip to content

Commit 1ccd99e

Browse files
committed
Polishing
1 parent 627d37f commit 1ccd99e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

spring-core/src/main/java/org/springframework/core/CollectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import org.springframework.util.ReflectionUtils;
4444

4545
/**
46-
* Factory for collections that is aware of Java 5, Java 6, and Spring collection types.
46+
* Factory for collections that is aware of common Java and Spring collection types.
4747
*
4848
* <p>Mainly for internal use within the framework.
4949
*

spring-jdbc/src/main/java/org/springframework/jdbc/core/support/AbstractLobStreamingResultSetExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@ public final T extractData(ResultSet rs) throws SQLException, DataAccessExceptio
8080
}
8181
}
8282
catch (IOException ex) {
83-
throw new LobRetrievalFailureException("Couldn't stream LOB content", ex);
83+
throw new LobRetrievalFailureException("Could not stream LOB content", ex);
8484
}
8585
}
8686
return null;

spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlFunction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -161,7 +161,7 @@ public int run(int parameter) {
161161
public int run(Object... parameters) {
162162
Object obj = super.findObject(parameters);
163163
if (!(obj instanceof Number)) {
164-
throw new TypeMismatchDataAccessException("Couldn't convert result object [" + obj + "] to int");
164+
throw new TypeMismatchDataAccessException("Could not convert result object [" + obj + "] to int");
165165
}
166166
return ((Number) obj).intValue();
167167
}

spring-oxm/src/main/java/org/springframework/oxm/jaxb/Jaxb2Marshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ public byte[] getAttachmentAsByteArray(String cid) {
10191019
return FileCopyUtils.copyToByteArray(dataHandler.getInputStream());
10201020
}
10211021
catch (IOException ex) {
1022-
throw new UnmarshallingFailureException("Couldn't read attachment", ex);
1022+
throw new UnmarshallingFailureException("Could not read attachment", ex);
10231023
}
10241024
}
10251025

spring-tx/src/main/java/org/springframework/transaction/interceptor/MethodMapTransactionAttributeSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -153,7 +153,7 @@ public void addTransactionalMethod(Class<?> clazz, String mappedName, Transactio
153153
}
154154
if (matchingMethods.isEmpty()) {
155155
throw new IllegalArgumentException(
156-
"Couldn't find method '" + mappedName + "' on class [" + clazz.getName() + "]");
156+
"Could not find method '" + mappedName + "' on class [" + clazz.getName() + "]");
157157
}
158158

159159
// Register all matching methods

0 commit comments

Comments
 (0)