Skip to content

Commit 65ca7f4

Browse files
committed
Polishing
1 parent 0204b08 commit 65ca7f4

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,7 @@ public void testPrototypeCreationWithResolvedPropertiesIsFastEnough() {
25672567

25682568
@Test
25692569
public void testSingletonLookupByNameIsFastEnough() {
2570-
// Assume.group(TestGroup.PERFORMANCE);
2570+
Assume.group(TestGroup.PERFORMANCE);
25712571
Assume.notLogging(factoryLog);
25722572
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
25732573
lbf.registerBeanDefinition("test", new RootBeanDefinition(TestBean.class));
@@ -2584,7 +2584,7 @@ public void testSingletonLookupByNameIsFastEnough() {
25842584

25852585
@Test
25862586
public void testSingletonLookupByTypeIsFastEnough() {
2587-
// Assume.group(TestGroup.PERFORMANCE);
2587+
Assume.group(TestGroup.PERFORMANCE);
25882588
Assume.notLogging(factoryLog);
25892589
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
25902590
lbf.registerBeanDefinition("test", new RootBeanDefinition(TestBean.class));

spring-jdbc/src/main/java/org/springframework/jdbc/support/GeneratedKeyHolder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
import org.springframework.lang.Nullable;
2727

2828
/**
29-
* Default implementation of the {@link KeyHolder} interface, to be used for
29+
* The standard implementation of the {@link KeyHolder} interface, to be used for
3030
* holding auto-generated keys (as potentially returned by JDBC insert statements).
3131
*
32-
* <p>Create an instance of this class for each insert operation, and pass
33-
* it to the corresponding {@link org.springframework.jdbc.core.JdbcTemplate}
34-
* or {org.springframework.jdbc.object.SqlUpdate} methods.
32+
* <p>Create an instance of this class for each insert operation, and pass it
33+
* to the corresponding {@link org.springframework.jdbc.core.JdbcTemplate} or
34+
* {@link org.springframework.jdbc.object.SqlUpdate} methods.
3535
*
3636
* @author Thomas Risberg
3737
* @author Juergen Hoeller

spring-jdbc/src/main/java/org/springframework/jdbc/support/KeyHolder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 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.
@@ -52,28 +52,28 @@ public interface KeyHolder {
5252
* multiple entries as well. If this method encounters multiple entries in
5353
* either the map or the list meaning that multiple keys were returned,
5454
* then an InvalidDataAccessApiUsageException is thrown.
55-
* @return the generated key
56-
* @throws InvalidDataAccessApiUsageException if multiple keys are encountered.
55+
* @return the generated key as a number
56+
* @throws InvalidDataAccessApiUsageException if multiple keys are encountered
5757
*/
5858
@Nullable
5959
Number getKey() throws InvalidDataAccessApiUsageException;
6060

6161
/**
62-
* Retrieve the first map of keys. If there are multiple entries in the list
63-
* (meaning that multiple rows had keys returned), then an
64-
* InvalidDataAccessApiUsageException is thrown.
65-
* @return the Map of generated keys
62+
* Retrieve the first map of keys.
63+
* <p>If there are multiple entries in the list (meaning that multiple rows
64+
* had keys returned), then an InvalidDataAccessApiUsageException is thrown.
65+
* @return the Map of generated keys for a single row
6666
* @throws InvalidDataAccessApiUsageException if keys for multiple rows are encountered
6767
*/
6868
@Nullable
6969
Map<String, Object> getKeys() throws InvalidDataAccessApiUsageException;
7070

7171
/**
7272
* Return a reference to the List that contains the keys.
73-
* Can be used for extracting keys for multiple rows (an unusual case),
73+
* <p>Can be used for extracting keys for multiple rows (an unusual case),
7474
* and also for adding new maps of keys.
75-
* @return the List for the generated keys, with each entry being a Map
76-
* of column names and key values
75+
* @return the List for the generated keys, with each entry representing
76+
* an individual row through a Map of column names and key values
7777
*/
7878
List<Map<String, Object>> getKeyList();
7979

0 commit comments

Comments
 (0)