Skip to content

Commit b352dbf

Browse files
committed
Polishing (in particular updating javadoc references to Apache Commons)
(cherry picked from commit bc6a98c)
1 parent f42c53d commit b352dbf

File tree

31 files changed

+209
-205
lines changed

31 files changed

+209
-205
lines changed

spring-aop/src/main/java/org/springframework/aop/target/CommonsPoolTargetSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class CommonsPoolTargetSource extends AbstractPoolingTargetSource impleme
7878
private byte whenExhaustedAction = GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION;
7979

8080
/**
81-
* The Jakarta Commons {@code ObjectPool} used to pool target objects
81+
* The Apache Commons {@code ObjectPool} used to pool target objects
8282
*/
8383
private ObjectPool pool;
8484

spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ public void registerBeanDefinition(String beanName, BeanDefinition beanDefinitio
804804

805805
oldBeanDefinition = this.beanDefinitionMap.get(beanName);
806806
if (oldBeanDefinition != null) {
807-
if (!this.allowBeanDefinitionOverriding) {
807+
if (!isAllowBeanDefinitionOverriding()) {
808808
throw new BeanDefinitionStoreException(beanDefinition.getResourceDescription(), beanName,
809809
"Cannot register bean definition [" + beanDefinition + "] for bean '" + beanName +
810810
"': There is already [" + oldBeanDefinition + "] bound.");

spring-context/src/main/java/org/springframework/format/annotation/NumberFormat.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@
2828
* <p>Supports formatting by style or custom pattern string.
2929
* Can be applied to any JDK {@code java.lang.Number} type.
3030
*
31-
* <p>For style-based formatting, set the {@link #style} attribute to be the desired {@link Style}.
32-
* For custom formatting, set the {@link #pattern} attribute to be the number pattern, such as {@code #, ###.##}.
31+
* <p>For style-based formatting, set the {@link #style} attribute to be the
32+
* desired {@link Style}. For custom formatting, set the {@link #pattern}
33+
* attribute to be the number pattern, such as {@code #, ###.##}.
3334
*
34-
* <p>Each attribute is mutually exclusive, so only set one attribute per annotation instance
35-
* (the one most convenient one for your formatting needs). When the pattern attribute is specified,
36-
* it takes precedence over the style attribute. When no annotation attributes are specified,
35+
* <p>Each attribute is mutually exclusive, so only set one attribute per
36+
* annotation instance (the one most convenient one for your formatting needs).
37+
* When the {@link #pattern} attribute is specified, it takes precedence over
38+
* the {@link #style} attribute. When no annotation attributes are specified,
3739
* the default format applied is style-based with a style of {@link Style#NUMBER}.
3840
*
3941
* @author Keith Donald

spring-core/src/main/java/org/springframework/util/Assert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of
@@ -41,7 +41,7 @@
4141
* Assert.notNull(clazz, "The class must not be null");
4242
* Assert.isTrue(i > 0, "The value must be greater than zero");</pre>
4343
*
44-
* Mainly for internal use within the framework; consider Jakarta's Commons Lang
44+
* Mainly for internal use within the framework; consider Apache's Commons Lang
4545
* >= 2.0 for a more comprehensive suite of assertion utilities.
4646
*
4747
* @author Keith Donald

spring-core/src/main/java/org/springframework/util/NumberUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Miscellaneous utility methods for number conversion and parsing.
30-
* Mainly for internal use within the framework; consider Jakarta's
30+
* Mainly for internal use within the framework; consider Apache's
3131
* Commons Lang for a more comprehensive suite of string utilities.
3232
*
3333
* @author Juergen Hoeller

spring-core/src/main/java/org/springframework/util/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -35,7 +35,7 @@
3535
* Miscellaneous {@link String} utility methods.
3636
*
3737
* <p>Mainly for internal use within the framework; consider
38-
* <a href="http://jakarta.apache.org/commons/lang/">Jakarta's Commons Lang</a>
38+
* <a href="http://jakarta.apache.org/commons/lang/">Apache's Commons Lang</a>
3939
* for a more comprehensive suite of String utilities.
4040
*
4141
* <p>This class delivers some simple functionality that should really

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -83,7 +83,7 @@
8383
* <p>This transaction manager can be used as a replacement for the
8484
* {@link org.springframework.transaction.jta.JtaTransactionManager} in the single
8585
* resource case, as it does not require a container that supports JTA, typically
86-
* in combination with a locally defined JDBC DataSource (e.g. a Jakarta Commons
86+
* in combination with a locally defined JDBC DataSource (e.g. an Apache Commons
8787
* DBCP connection pool). Switching between this local strategy and a JTA
8888
* environment is just a matter of configuration!
8989
*
@@ -126,8 +126,8 @@ public DataSourceTransactionManager(DataSource dataSource) {
126126

127127
/**
128128
* Set the JDBC DataSource that this instance should manage transactions for.
129-
* <p>This will typically be a locally defined DataSource, for example a
130-
* Jakarta Commons DBCP connection pool. Alternatively, you can also drive
129+
* <p>This will typically be a locally defined DataSource, for example an
130+
* Apache Commons DBCP connection pool. Alternatively, you can also drive
131131
* transactions for a non-XA J2EE DataSource fetched from JNDI. For an XA
132132
* DataSource, use JtaTransactionManager.
133133
* <p>The DataSource specified here should be the target DataSource to manage

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DriverManagerDataSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -53,7 +53,7 @@
5353
* bean definition to a local DataSource (which is simpler and thus recommended).
5454
*
5555
* <p>If you need a "real" connection pool outside of a J2EE container, consider
56-
* <a href="http://jakarta.apache.org/commons/dbcp">Apache's Jakarta Commons DBCP</a>
56+
* <a href="http://commons.apache.org/proper/commons-dbcp">Apache Commons DBCP</a>
5757
* or <a href="http://sourceforge.net/projects/c3p0">C3P0</a>.
5858
* Commons DBCP's BasicDataSource and C3P0's ComboPooledDataSource are full
5959
* connection pool beans, supporting the same basic properties as this class

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/SimpleDriverDataSource.java

Lines changed: 4 additions & 4 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-2015 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.
@@ -26,8 +26,8 @@
2626

2727
/**
2828
* Simple implementation of the standard JDBC {@link javax.sql.DataSource} interface,
29-
* configuring a plain old JDBC {@link java.sql.Driver} via bean properties, and returning
30-
* a new {@link java.sql.Connection} from every {@code getConnection} call.
29+
* configuring a plain old JDBC {@link java.sql.Driver} via bean properties, and
30+
* returning a new {@link java.sql.Connection} from every {@code getConnection} call.
3131
*
3232
* <p><b>NOTE: This class is not an actual connection pool; it does not actually
3333
* pool Connections.</b> It just serves as simple replacement for a full-blown
@@ -40,7 +40,7 @@
4040
* for seamless switching to and from a local DataSource bean like this class.
4141
*
4242
* <p>If you need a "real" connection pool outside of a J2EE container, consider
43-
* <a href="http://jakarta.apache.org/commons/dbcp">Apache's Jakarta Commons DBCP</a>
43+
* <a href="http://commons.apache.org/proper/commons-dbcp">Apache Commons DBCP</a>
4444
* or <a href="http://sourceforge.net/projects/c3p0">C3P0</a>.
4545
* Commons DBCP's BasicDataSource and C3P0's ComboPooledDataSource are full
4646
* connection pool beans, supporting the same basic properties as this class

spring-jdbc/src/main/java/org/springframework/jdbc/support/nativejdbc/CommonsDbcpNativeJdbcExtractor.java

Lines changed: 2 additions & 2 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-2015 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.
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Implementation of the {@link NativeJdbcExtractor} interface for the
32-
* Jakarta Commons DBCP connection pool, version 1.1 or higher.
32+
* Apache Commons DBCP connection pool, version 1.1 or higher.
3333
*
3434
* <p>Returns the underlying native Connection, Statement, etc to application
3535
* code instead of DBCP's wrapper implementations. The returned JDBC classes

0 commit comments

Comments
 (0)