Skip to content

Commit b2d87ab

Browse files
committed
Polishing
1 parent d1a0b8d commit b2d87ab

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,7 @@ public int getSupplimentalHash() {
599599
protected ReferenceManager createReferenceManager() {
600600
return new ReferenceManager() {
601601
@Override
602-
public Reference<K, V> createReference(Entry<K, V> entry, int hash,
603-
@Nullable Reference<K, V> next) {
602+
public Reference<K, V> createReference(Entry<K, V> entry, int hash, @Nullable Reference<K, V> next) {
604603
if (TestWeakConcurrentCache.this.disableTestHooks) {
605604
return super.createReference(entry, hash, next);
606605
}

spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void NPE_SPR5673() {
236236
}
237237

238238
@Test
239-
public void accessingNullPropertyViaReflection_SPR5663() throws AccessException {
239+
public void propertyAccessOnNullTarget_SPR5663() throws AccessException {
240240
PropertyAccessor accessor = new ReflectivePropertyAccessor();
241241
EvaluationContext context = TestScenarioCreator.getTestEvaluationContext();
242242
assertFalse(accessor.canRead(context, null, "abc"));

spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public SqlParameter createReturnResultSetParameter(String parameterName, RowMapp
276276
}
277277
else {
278278
throw new InvalidDataAccessApiUsageException(
279-
"Return of a ResultSet from a stored procedure is not supported.");
279+
"Return of a ResultSet from a stored procedure is not supported");
280280
}
281281
}
282282
}

spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProviderFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public class CallMetaDataProviderFactory {
6060

6161

6262
/**
63-
* Create a {@link CallMetaDataProvider} based on the database meta-data
64-
* @param dataSource used to retrieve meta-data
63+
* Create a {@link CallMetaDataProvider} based on the database meta-data.
64+
* @param dataSource the JDBC DataSource to use for retrieving meta-data
6565
* @param context the class that holds configuration and meta-data
6666
* @return instance of the CallMetaDataProvider implementation to be used
6767
*/

spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericCallMetaDataProvider.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,66 +256,66 @@ public boolean isProcedureColumnMetaDataUsed() {
256256

257257

258258
/**
259-
* Specify whether the database supports the use of catalog name in procedure calls
259+
* Specify whether the database supports the use of catalog name in procedure calls.
260260
*/
261261
protected void setSupportsCatalogsInProcedureCalls(boolean supportsCatalogsInProcedureCalls) {
262262
this.supportsCatalogsInProcedureCalls = supportsCatalogsInProcedureCalls;
263263
}
264264

265265
/**
266-
* Does the database support the use of catalog name in procedure calls
266+
* Does the database support the use of catalog name in procedure calls?
267267
*/
268268
@Override
269269
public boolean isSupportsCatalogsInProcedureCalls() {
270270
return this.supportsCatalogsInProcedureCalls;
271271
}
272272

273273
/**
274-
* Specify whether the database supports the use of schema name in procedure calls
274+
* Specify whether the database supports the use of schema name in procedure calls.
275275
*/
276276
protected void setSupportsSchemasInProcedureCalls(boolean supportsSchemasInProcedureCalls) {
277277
this.supportsSchemasInProcedureCalls = supportsSchemasInProcedureCalls;
278278
}
279279

280280
/**
281-
* Does the database support the use of schema name in procedure calls
281+
* Does the database support the use of schema name in procedure calls?
282282
*/
283283
@Override
284284
public boolean isSupportsSchemasInProcedureCalls() {
285285
return this.supportsSchemasInProcedureCalls;
286286
}
287287

288288
/**
289-
* Specify whether the database uses upper case for identifiers
289+
* Specify whether the database uses upper case for identifiers.
290290
*/
291291
protected void setStoresUpperCaseIdentifiers(boolean storesUpperCaseIdentifiers) {
292292
this.storesUpperCaseIdentifiers = storesUpperCaseIdentifiers;
293293
}
294294

295295
/**
296-
* Does the database use upper case for identifiers
296+
* Does the database use upper case for identifiers?
297297
*/
298298
protected boolean isStoresUpperCaseIdentifiers() {
299299
return this.storesUpperCaseIdentifiers;
300300
}
301301

302302
/**
303-
* Specify whether the database uses lower case for identifiers
303+
* Specify whether the database uses lower case for identifiers.
304304
*/
305305
protected void setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers) {
306306
this.storesLowerCaseIdentifiers = storesLowerCaseIdentifiers;
307307
}
308308

309309
/**
310-
* Does the database use lower case for identifiers
310+
* Does the database use lower case for identifiers?
311311
*/
312312
protected boolean isStoresLowerCaseIdentifiers() {
313313
return this.storesLowerCaseIdentifiers;
314314
}
315315

316316

317317
/**
318-
* Process the procedure column meta-data
318+
* Process the procedure column meta-data.
319319
*/
320320
private void processProcedureColumns(DatabaseMetaData databaseMetaData,
321321
@Nullable String catalogName, @Nullable String schemaName, @Nullable String procedureName) {

spring-web/src/main/java/org/springframework/http/converter/BufferedImageHttpMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public BufferedImageHttpMessageConverter() {
100100
* @throws IllegalArgumentException if the given content type is not supported by the Java Image I/O API
101101
*/
102102
public void setDefaultContentType(@Nullable MediaType defaultContentType) {
103-
if (defaultContentType!= null) {
103+
if (defaultContentType != null) {
104104
Iterator<ImageWriter> imageWriters = ImageIO.getImageWritersByMIMEType(defaultContentType.toString());
105105
if (!imageWriters.hasNext()) {
106106
throw new IllegalArgumentException(

0 commit comments

Comments
 (0)