Remove [set|with]Property(String, String) variants from MockEnvironment

Since setProperty(String, Object) and withProperty(String, Object)
methods were introduced in MockEnvironment in 6.2.8, this commit removes
the obsolete variants with (String, String) signatures.

See gh-34947
Closes gh-34948
This commit is contained in:
Sam Brannen 2025-05-26 17:45:51 +02:00
parent 6f6e0d45a9
commit 62f1814d7c
1 changed files with 0 additions and 20 deletions

View File

@ -50,14 +50,6 @@ public class MockEnvironment extends AbstractEnvironment {
this.propertySource.setProperty(name, value);
}
/**
* Set a property on the underlying {@link MockPropertySource} for this environment.
* @see #setProperty(String, Object)
*/
public void setProperty(String name, String value) {
this.propertySource.setProperty(name, value);
}
/**
* Convenient synonym for {@link #setProperty(String, Object)} that returns
* the current instance.
@ -71,16 +63,4 @@ public class MockEnvironment extends AbstractEnvironment {
return this;
}
/**
* Convenient synonym for {@link #setProperty(String, String)} that returns
* the current instance.
* <p>Useful for method chaining and fluent-style use.
* @return this {@link MockEnvironment} instance
* @see #withProperty(String, Object)
*/
public MockEnvironment withProperty(String name, String value) {
setProperty(name, value);
return this;
}
}