Polish Javadoc for MockPropertySource

(cherry picked from commit 6a6abac003)
This commit is contained in:
Sam Brannen 2025-05-26 17:21:31 +02:00
parent 9a89654a64
commit 30bee4db0f
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2025 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -26,7 +26,7 @@ import org.springframework.core.env.PropertySource;
* a user-provided {@link Properties} object, or if omitted during construction, * a user-provided {@link Properties} object, or if omitted during construction,
* the implementation will initialize its own. * the implementation will initialize its own.
* *
* The {@link #setProperty} and {@link #withProperty} methods are exposed for * <p>The {@link #setProperty} and {@link #withProperty} methods are exposed for
* convenience, for example: * convenience, for example:
* <pre class="code"> * <pre class="code">
* {@code * {@code
@ -95,7 +95,7 @@ public class MockPropertySource extends PropertiesPropertySource {
/** /**
* Convenient synonym for {@link #setProperty} that returns the current instance. * Convenient synonym for {@link #setProperty} that returns the current instance.
* Useful for method chaining and fluent-style use. * <p>Useful for method chaining and fluent-style use.
* @return this {@link MockPropertySource} instance * @return this {@link MockPropertySource} instance
*/ */
public MockPropertySource withProperty(String name, Object value) { public MockPropertySource withProperty(String name, Object value) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2025 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -26,7 +26,7 @@ import org.springframework.core.env.PropertySource;
* a user-provided {@link Properties} object, or if omitted during construction, * a user-provided {@link Properties} object, or if omitted during construction,
* the implementation will initialize its own. * the implementation will initialize its own.
* *
* The {@link #setProperty} and {@link #withProperty} methods are exposed for * <p>The {@link #setProperty} and {@link #withProperty} methods are exposed for
* convenience, for example: * convenience, for example:
* <pre class="code"> * <pre class="code">
* {@code * {@code
@ -36,7 +36,7 @@ import org.springframework.core.env.PropertySource;
* *
* @author Chris Beams * @author Chris Beams
* @since 3.1 * @since 3.1
* @see org.springframework.mock.env.MockEnvironment * @see MockEnvironment
*/ */
public class MockPropertySource extends PropertiesPropertySource { public class MockPropertySource extends PropertiesPropertySource {
@ -95,7 +95,7 @@ public class MockPropertySource extends PropertiesPropertySource {
/** /**
* Convenient synonym for {@link #setProperty} that returns the current instance. * Convenient synonym for {@link #setProperty} that returns the current instance.
* Useful for method chaining and fluent-style use. * <p>Useful for method chaining and fluent-style use.
* @return this {@link MockPropertySource} instance * @return this {@link MockPropertySource} instance
*/ */
public MockPropertySource withProperty(String name, Object value) { public MockPropertySource withProperty(String name, Object value) {