Skip to content

Commit 2ac5565

Browse files
committed
Merge branch '6.0.x'
2 parents 25ea1f4 + c64a322 commit 2ac5565

File tree

9 files changed

+23
-21
lines changed

9 files changed

+23
-21
lines changed

framework-docs/modules/ROOT/pages/core/beans/context-introduction.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ Java::
910910
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
911911
----
912912
// create a startup step and start recording
913-
StartupStep scanPackages = this.getApplicationStartup().start("spring.context.base-packages.scan");
913+
StartupStep scanPackages = getApplicationStartup().start("spring.context.base-packages.scan");
914914
// add tagging information to the current step
915915
scanPackages.tag("packages", () -> Arrays.toString(basePackages));
916916
// perform the actual phase we're instrumenting
@@ -924,7 +924,7 @@ Kotlin::
924924
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
925925
----
926926
// create a startup step and start recording
927-
val scanPackages = this.getApplicationStartup().start("spring.context.base-packages.scan")
927+
val scanPackages = getApplicationStartup().start("spring.context.base-packages.scan")
928928
// add tagging information to the current step
929929
scanPackages.tag("packages", () -> Arrays.toString(basePackages))
930930
// perform the actual phase we're instrumenting

spring-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ private Callback[] getCallbacks(Class<?> rootClass) throws Exception {
370370

371371
@Override
372372
public boolean equals(@Nullable Object other) {
373-
return (this == other || (other instanceof CglibAopProxy cglibAopProxy &&
374-
AopProxyUtils.equalsInProxy(this.advised, cglibAopProxy.advised)));
373+
return (this == other || (other instanceof CglibAopProxy that &&
374+
AopProxyUtils.equalsInProxy(this.advised, that.advised)));
375375
}
376376

377377
@Override

spring-context/src/main/java/org/springframework/context/support/AbstractXmlApplicationContext.java

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

2121
import org.springframework.beans.BeansException;
2222
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
23+
import org.springframework.beans.factory.xml.BeanDefinitionDocumentReader;
2324
import org.springframework.beans.factory.xml.ResourceEntityResolver;
2425
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
2526
import org.springframework.context.ApplicationContext;
@@ -95,12 +96,13 @@ protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throw
9596
}
9697

9798
/**
98-
* Initialize the bean definition reader used for loading the bean
99-
* definitions of this context. Default implementation is empty.
99+
* Initialize the bean definition reader used for loading the bean definitions
100+
* of this context. The default implementation sets the validating flag.
100101
* <p>Can be overridden in subclasses, e.g. for turning off XML validation
101-
* or using a different XmlBeanDefinitionParser implementation.
102+
* or using a different {@link BeanDefinitionDocumentReader} implementation.
102103
* @param reader the bean definition reader used by this context
103-
* @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader#setDocumentReaderClass
104+
* @see XmlBeanDefinitionReader#setValidating
105+
* @see XmlBeanDefinitionReader#setDocumentReaderClass
104106
*/
105107
protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) {
106108
reader.setValidating(this.validating);

spring-context/src/test/java/org/springframework/mock/env/MockEnvironment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2023 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-core/src/testFixtures/java/org/springframework/core/testfixture/env/MockPropertySource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* The {@link #setProperty} and {@link #withProperty} methods are exposed for
3030
* convenience, for example:
31-
* <pre>
31+
* <pre class="code">
3232
* {@code
3333
* PropertySource<?> source = new MockPropertySource().withProperty("foo", "bar");
3434
* }
@@ -77,7 +77,7 @@ public MockPropertySource(Properties properties) {
7777

7878
/**
7979
* Create a new {@code MockPropertySource} with the given name and backed by the given
80-
* {@link Properties} object
80+
* {@link Properties} object.
8181
* @param name the {@linkplain #getName() name} of the property source
8282
* @param properties the properties to use
8383
*/

spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,10 @@ protected boolean destinationEquals(DestinationCacheKey otherKey) {
559559
}
560560

561561
@Override
562-
public boolean equals(@Nullable Object obj) {
562+
public boolean equals(@Nullable Object other) {
563563
// Effectively checking object equality as well as toString equality.
564564
// On WebSphere MQ, Destination objects do not implement equals...
565-
return (this == obj || (obj instanceof DestinationCacheKey otherKey &&
566-
destinationEquals(otherKey)));
565+
return (this == other || (other instanceof DestinationCacheKey that && destinationEquals(that)));
567566
}
568567

569568
@Override

spring-test/src/main/java/org/springframework/mock/env/MockEnvironment.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
/**
2323
* Simple {@link ConfigurableEnvironment} implementation exposing
24-
* {@link #setProperty(String, String)} and {@link #withProperty(String, String)}
25-
* methods for testing purposes.
24+
* {@link #setProperty} and {@link #withProperty} methods for testing purposes.
2625
*
2726
* @author Chris Beams
2827
* @author Sam Brannen
@@ -33,13 +32,15 @@ public class MockEnvironment extends AbstractEnvironment {
3332

3433
private final MockPropertySource propertySource = new MockPropertySource();
3534

35+
3636
/**
3737
* Create a new {@code MockEnvironment} with a single {@link MockPropertySource}.
3838
*/
3939
public MockEnvironment() {
4040
getPropertySources().addLast(this.propertySource);
4141
}
4242

43+
4344
/**
4445
* Set a property on the underlying {@link MockPropertySource} for this environment.
4546
*/

spring-test/src/main/java/org/springframework/mock/env/MockPropertySource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class MockPropertySource extends PropertiesPropertySource {
4848
*/
4949
public static final String MOCK_PROPERTIES_PROPERTY_SOURCE_NAME = "mockProperties";
5050

51+
5152
/**
5253
* Create a new {@code MockPropertySource} named {@value #MOCK_PROPERTIES_PROPERTY_SOURCE_NAME}
5354
* that will maintain its own internal {@link Properties} instance.
@@ -84,6 +85,7 @@ public MockPropertySource(String name, Properties properties) {
8485
super(name, properties);
8586
}
8687

88+
8789
/**
8890
* Set the given property on the underlying {@link Properties} object.
8991
*/
@@ -97,7 +99,7 @@ public void setProperty(String name, Object value) {
9799
* @return this {@link MockPropertySource} instance
98100
*/
99101
public MockPropertySource withProperty(String name, Object value) {
100-
this.setProperty(name, value);
102+
setProperty(name, value);
101103
return this;
102104
}
103105

spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,13 +599,11 @@ public static class PathRemainingMatchInfo {
599599

600600
private final PathMatchInfo pathMatchInfo;
601601

602-
603602
PathRemainingMatchInfo(PathContainer pathMatched, PathContainer pathRemaining) {
604603
this(pathMatched, pathRemaining, PathMatchInfo.EMPTY);
605604
}
606605

607-
PathRemainingMatchInfo(PathContainer pathMatched, PathContainer pathRemaining,
608-
PathMatchInfo pathMatchInfo) {
606+
PathRemainingMatchInfo(PathContainer pathMatched, PathContainer pathRemaining, PathMatchInfo pathMatchInfo) {
609607
this.pathRemaining = pathRemaining;
610608
this.pathMatched = pathMatched;
611609
this.pathMatchInfo = pathMatchInfo;

0 commit comments

Comments
 (0)