Browse Source

Polish

pull/6251/head
Phillip Webb 10 years ago
parent
commit
be884d4e33
  1. 3
      spring-boot-test/src/main/java/org/springframework/boot/test/TestRestTemplate.java
  2. 1
      spring-boot/src/main/java/org/springframework/boot/bind/RelaxedPropertyResolver.java
  3. 1
      spring-boot/src/test/java/org/springframework/boot/bind/RelaxedPropertyResolverTests.java

3
spring-boot-test/src/main/java/org/springframework/boot/test/TestRestTemplate.java

@ -18,7 +18,6 @@ package org.springframework.boot.test; @@ -18,7 +18,6 @@ package org.springframework.boot.test;
import java.io.IOException;
import java.net.URI;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
@ -55,8 +54,6 @@ import org.springframework.web.client.RestTemplate; @@ -55,8 +54,6 @@ import org.springframework.web.client.RestTemplate;
@Deprecated
public class TestRestTemplate extends RestTemplate {
private static final Charset UTF_8 = Charset.forName("UTF-8");
/**
* Create a new {@link TestRestTemplate} instance.
* @param httpClientOptions client options to use if the Apache HTTP Client is used

1
spring-boot/src/main/java/org/springframework/boot/bind/RelaxedPropertyResolver.java

@ -87,6 +87,7 @@ public class RelaxedPropertyResolver implements PropertyResolver { @@ -87,6 +87,7 @@ public class RelaxedPropertyResolver implements PropertyResolver {
}
@Override
@Deprecated
public <T> Class<T> getPropertyAsClass(String key, Class<T> targetType) {
RelaxedNames prefixes = new RelaxedNames(this.prefix);
RelaxedNames keys = new RelaxedNames(key);

1
spring-boot/src/test/java/org/springframework/boot/bind/RelaxedPropertyResolverTests.java

@ -119,6 +119,7 @@ public class RelaxedPropertyResolverTests { @@ -119,6 +119,7 @@ public class RelaxedPropertyResolverTests {
}
@Test
@Deprecated
public void getPropertyAsClass() throws Exception {
assertThat(this.resolver.getPropertyAsClass("my-class", String.class))
.isEqualTo(String.class);

Loading…
Cancel
Save