streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfranklin <...@git.apache.org>
Subject [GitHub] incubator-streams pull request: Resolves STREAMS-141
Date Wed, 06 Aug 2014 13:17:26 GMT
Github user mfranklin commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/62#discussion_r15872031
  
    --- Diff: streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/serializer/StreamsTwitterMapper.java
---
    @@ -68,7 +71,14 @@ public StreamsTwitterMapper() {
                     addDeserializer(DateTime.class, new StdDeserializer<DateTime>(DateTime.class)
{
                         @Override
                         public DateTime deserialize(JsonParser jpar, DeserializationContext
context) throws IOException, JsonProcessingException {
    -                        return TWITTER_FORMAT.parseDateTime(jpar.getValueAsString());
    +                        DateTime result = null;
    +                        try {
    +                            result = TWITTER_FORMAT.parseDateTime(jpar.getValueAsString());
    --- End diff --
    
    Can we just update RFC3339Utils to have the twitter format rather than forcing a separate
mapper?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message