Use 'name' vs 'key' consistently in PropertySource

This commit is contained in:
Chris Beams
2011-11-26 05:20:17 +00:00
parent 03f6d23536
commit a53d592f62
11 changed files with 63 additions and 61 deletions

View File

@@ -87,8 +87,8 @@ public class MockPropertySource extends PropertiesPropertySource {
/**
* Set the given property on the underlying {@link Properties} object.
*/
public void setProperty(String key, Object value) {
this.source.put(key, value);
public void setProperty(String name, Object value) {
this.source.put(name, value);
}
/**
@@ -96,8 +96,8 @@ public class MockPropertySource extends PropertiesPropertySource {
* Useful for method chaining and fluent-style use.
* @return this {@link MockPropertySource} instance
*/
public MockPropertySource withProperty(String key, Object value) {
this.setProperty(key, value);
public MockPropertySource withProperty(String name, Object value) {
this.setProperty(name, value);
return this;
}
}