This commit is contained in:
Phillip Webb
2014-11-21 13:27:19 -08:00
parent 5220f584db
commit 2a9a749329
4 changed files with 9 additions and 8 deletions

View File

@@ -27,11 +27,10 @@ import com.fasterxml.jackson.databind.SerializationFeature;
/**
* Configuration properties to configure {@link HttpMessageConverter}s.
*
* @deprecated pleas use {@link JacksonProperties} instead
*
* @author Dave Syer
* @author Piotr Maj
* @author Sebastien Deleuze
* @deprecated in favor of {@link JacksonProperties}
*/
@ConfigurationProperties(prefix = "http.mappers", ignoreUnknownFields = false)
@Deprecated

View File

@@ -208,8 +208,8 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
if (returnType != null && returnType instanceof TypeElement
&& annotation == null) {
TypeElement returns = (TypeElement) returnType;
if ((this.typeUtils.isEnclosedIn(returnType, element) && returnType.getKind() != ElementKind.ENUM)
|| isNested) {
if ((this.typeUtils.isEnclosedIn(returnType, element) && returnType
.getKind() != ElementKind.ENUM) || isNested) {
String nestedPrefix = ConfigurationMetadata
.nestedPrefix(prefix, name);
this.metadata.add(ItemMetadata.newGroup(nestedPrefix,

View File

@@ -243,7 +243,10 @@ public class ConfigurationMetadataAnnotationProcessorTests {
assertThat(metadata, containsGroup("config.third").ofType(SimplePojo.class)
.fromSource(InnerClassProperties.class));
assertThat(metadata, containsProperty("config.third.value"));
assertThat(metadata, containsProperty("config.fourth").ofType(InnerClassProperties.Fourth.class));
assertThat(
metadata,
containsProperty("config.fourth").ofType(
InnerClassProperties.Fourth.class));
assertThat(metadata, not(containsGroup("config.fourth")));
}

View File

@@ -53,7 +53,7 @@ public class InnerClassProperties {
}
public Fourth getFourth() {
return fourth;
return this.fourth;
}
public void setFourth(Fourth fourth) {
@@ -94,8 +94,7 @@ public class InnerClassProperties {
}
public static enum Fourth {
YES,
NO
YES, NO
}
}