Polish
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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")));
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user