Skip to content

Commit 92a231c

Browse files
marcwrobelsbrannen
authored andcommitted
Fix typos in Javadoc, reference docs, and code
Closes gh-28822
1 parent 50dff77 commit 92a231c

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public abstract class AbstractAutoProxyCreator extends ProxyProcessorSupport
147147
/**
148148
* Set whether the proxy should be frozen, preventing advice
149149
* from being added to it once it is created.
150-
* <p>Overridden from the super class to prevent the proxy configuration
150+
* <p>Overridden from the superclass to prevent the proxy configuration
151151
* from being frozen before the proxy is created.
152152
*/
153153
@Override

spring-aspects/src/main/java/org/springframework/beans/factory/aspectj/AbstractDependencyInjectionAspect.aj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract aspect AbstractDependencyInjectionAspect {
3535
mostSpecificSubTypeConstruction() && !preConstructionConfiguration();
3636

3737
/**
38-
* Select least specific super type that is marked for DI
38+
* Select least specific supertype that is marked for DI
3939
* (so that injection occurs only once with pre-construction injection).
4040
*/
4141
public abstract pointcut leastSpecificSuperTypeConstruction();

spring-context-indexer/src/main/java/org/springframework/context/index/processor/TypeHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private String getQualifiedName(Element element) {
8181
}
8282

8383
/**
84-
* Return the super class of the specified {@link Element} or null if this
84+
* Return the superclass of the specified {@link Element} or null if this
8585
* {@code element} represents {@link Object}.
8686
*/
8787
public Element getSuperClass(Element element) {
@@ -100,7 +100,7 @@ public Element getSuperClass(Element element) {
100100
public List<Element> getDirectInterfaces(Element element) {
101101
List<? extends TypeMirror> superTypes = this.types.directSupertypes(element.asType());
102102
List<Element> directInterfaces = new ArrayList<>();
103-
if (superTypes.size() > 1) { // index 0 is the super class
103+
if (superTypes.size() > 1) { // index 0 is the superclass
104104
for (int i = 1; i < superTypes.size(); i++) {
105105
Element e = this.types.asElement(superTypes.get(i));
106106
if (e != null) {

spring-core/src/main/java/org/springframework/asm/Type.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ public int getSize() {
708708
*
709709
* @return the size of the arguments of the method (plus one for the implicit this argument),
710710
* argumentsSize, and the size of its return value, returnSize, packed into a single int i =
711-
* {@code (argumentsSize &lt;&lt; 2) | returnSize} (argumentsSize is therefore equal to {@code
712-
* i &gt;&gt; 2}, and returnSize to {@code i &amp; 0x03}).
711+
* {@code (argumentsSize << 2) | returnSize} (argumentsSize is therefore equal to {@code
712+
* i >> 2}, and returnSize to {@code i & 0x03}).
713713
*/
714714
public int getArgumentsAndReturnSizes() {
715715
return getArgumentsAndReturnSizes(getDescriptor());
@@ -721,8 +721,8 @@ public int getArgumentsAndReturnSizes() {
721721
* @param methodDescriptor a method descriptor.
722722
* @return the size of the arguments of the method (plus one for the implicit this argument),
723723
* argumentsSize, and the size of its return value, returnSize, packed into a single int i =
724-
* {@code (argumentsSize &lt;&lt; 2) | returnSize} (argumentsSize is therefore equal to {@code
725-
* i &gt;&gt; 2}, and returnSize to {@code i &amp; 0x03}).
724+
* {@code (argumentsSize << 2) | returnSize} (argumentsSize is therefore equal to {@code
725+
* i >> 2}, and returnSize to {@code i & 0x03}).
726726
*/
727727
public static int getArgumentsAndReturnSizes(final String methodDescriptor) {
728728
int argumentsSize = 1;

spring-core/src/main/java/org/springframework/core/type/filter/AbstractTypeHierarchyTraversingFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public boolean match(MetadataReader metadataReader, MetadataReaderFactory metada
8686
}
8787
catch (IOException ex) {
8888
if (logger.isDebugEnabled()) {
89-
logger.debug("Could not read super class [" + metadata.getSuperClassName() +
89+
logger.debug("Could not read superclass [" + metadata.getSuperClassName() +
9090
"] of type-filtered class [" + metadata.getClassName() + "]");
9191
}
9292
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 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.

spring-expression/src/main/java/org/springframework/expression/ExpressionException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.springframework.lang.Nullable;
2020

2121
/**
22-
* Super class for exceptions that can occur whilst processing expressions.
22+
* Superclass for exceptions that can occur whilst processing expressions.
2323
*
2424
* @author Andy Clement
2525
* @author Phillip Webb

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.springframework.util.Assert;
3030

3131
/**
32-
* Convenient super class for JDBC-based data access objects.
32+
* Convenient superclass for JDBC-based data access objects.
3333
*
3434
* <p>Requires a {@link javax.sql.DataSource} to be set, providing a
3535
* {@link org.springframework.jdbc.core.JdbcTemplate} based on it to

spring-jms/src/main/java/org/springframework/jms/core/support/JmsGatewaySupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.springframework.lang.Nullable;
2828

2929
/**
30-
* Convenient super class for application classes that need JMS access.
30+
* Convenient superclass for application classes that need JMS access.
3131
*
3232
* <p>Requires a ConnectionFactory or a JmsTemplate instance to be set.
3333
* It will create its own JmsTemplate if a ConnectionFactory is passed in.

spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public final boolean isRunning() {
262262
* may still independently alternate between being on and off depending on the
263263
* concrete subclass implementation.
264264
* <p>Application components may implement
265-
* {@code org.springframework.context.ApplicationListener&lt;BrokerAvailabilityEvent&gt;}
265+
* {@code org.springframework.context.ApplicationListener<BrokerAvailabilityEvent>}
266266
* to receive notifications when broker becomes available and unavailable.
267267
*/
268268
public boolean isBrokerAvailable() {

spring-orm/src/main/java/org/springframework/orm/hibernate5/support/HibernateDaoSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.util.Assert;
2727

2828
/**
29-
* Convenient super class for Hibernate-based data access objects.
29+
* Convenient superclass for Hibernate-based data access objects.
3030
*
3131
* <p>Requires a {@link SessionFactory} to be set, providing a
3232
* {@link org.springframework.orm.hibernate5.HibernateTemplate} based on it to

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* {@link TransactionAttributeEditor} in this package.
3030
*
3131
* <p>Strings are in property syntax, with the form:<br>
32-
* {@code FQCN.methodName=&lt;transaction attribute string&gt;}
32+
* {@code FQCN.methodName=<transaction attribute string>}
3333
*
3434
* <p>For example:<br>
3535
* {@code com.mycompany.mycode.MyClass.myMethod=PROPAGATION_MANDATORY,ISOLATION_DEFAULT}

spring-web/src/main/java/org/springframework/web/client/support/RestGatewaySupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.web.client.RestTemplate;
2525

2626
/**
27-
* Convenient super class for application classes that need REST access.
27+
* Convenient superclass for application classes that need REST access.
2828
*
2929
* <p>Requires a {@link ClientHttpRequestFactory} or a {@link RestTemplate} instance to be set.
3030
*

spring-web/src/main/java/org/springframework/web/context/request/AbstractRequestAttributesScope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* this class which {@link RequestAttributes} scope to read attributes from.
2929
*
3030
* <p>Subclasses may wish to override the {@link #get} and {@link #remove}
31-
* methods to add synchronization around the call back into this super class.
31+
* methods to add synchronization around the call back into this superclass.
3232
*
3333
* @author Rod Johnson
3434
* @author Juergen Hoeller

spring-web/src/main/java/org/springframework/web/method/HandlerTypePredicate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static HandlerTypePredicate forBasePackageClass(Class<?>... packageClasse
128128

129129
/**
130130
* Match handlers that are assignable to a given type.
131-
* @param types one or more handler super types
131+
* @param types one or more handler supertypes
132132
*/
133133
public static HandlerTypePredicate forAssignableType(Class<?>... types) {
134134
return new Builder().assignableType(types).build();
@@ -187,7 +187,7 @@ private void addBasePackage(String basePackage) {
187187

188188
/**
189189
* Match handlers that are assignable to a given type.
190-
* @param types one or more handler super types
190+
* @param types one or more handler supertypes
191191
*/
192192
public Builder assignableType(Class<?>... types) {
193193
this.assignableTypes.addAll(Arrays.asList(types));

spring-web/src/test/java/org/springframework/web/server/handler/ResponseStatusExceptionHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
*/
2727
public class ResponseStatusExceptionHandlerTests extends AbstractResponseStatusExceptionHandlerTests {
2828

29-
// all tests in super class
29+
// all tests in superclass
3030

3131
}

spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractHtmlElementBodyTag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.springframework.util.StringUtils;
2828

2929
/**
30-
* Convenient super class for many html tags that render content using the databinding
30+
* Convenient superclass for many html tags that render content using the databinding
3131
* features of the {@link AbstractHtmlElementTag AbstractHtmlElementTag}. The only thing
3232
* sub-tags need to do is override {@link #renderDefaultContent(TagWriter)}.
3333
*

src/docs/asciidoc/testing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ Spring test configuration annotations are processed within enclosing class hiera
18711871
for inner test classes.
18721872

18731873
If `@NestedTestConfiguration` is not present or meta-present on a test class, in its
1874-
super type hierarchy, or in its enclosing class hierarchy, the default _enclosing
1874+
supertype hierarchy, or in its enclosing class hierarchy, the default _enclosing
18751875
configuration inheritance mode_ will be used. See the tip below for details on how to
18761876
change the default mode.
18771877

0 commit comments

Comments
 (0)