Skip to content

Commit

Permalink
Azure#742 Hide RFC1123 on parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Mar 22, 2016
1 parent d9c5f88 commit 84c75d9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

package com.microsoft.rest.serializer;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
Expand Down Expand Up @@ -58,6 +59,10 @@ protected void initializeObjectMapper(ObjectMapper mapper) {
.registerModule(DateTimeSerializer.getModule())
.registerModule(DateTimeRfc1123Serializer.getModule())
.registerModule(HeadersSerializer.getModule());
mapper.setVisibility(mapper.getSerializationConfig().getDefaultVisibilityChecker()
.withFieldVisibility(JsonAutoDetect.Visibility.ANY)
.withSetterVisibility(JsonAutoDetect.Visibility.NONE)
.withGetterVisibility(JsonAutoDetect.Visibility.NONE));
}

/**
Expand Down

0 comments on commit 84c75d9

Please sign in to comment.