streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robdouglas <>
Subject [GitHub] incubator-streams pull request: Streams 242
Date Fri, 05 Dec 2014 22:07:02 GMT
Github user robdouglas commented on a diff in the pull request:
    --- Diff: streams-contrib/streams-provider-datasift/src/test/java17/org/apache/streams/datasift/serializer/
    @@ -50,7 +57,10 @@ public void testTwitterDetection() throws Exception {
         public void testInstagramDetection() throws Exception {
    -        Scanner scanner = new Scanner(DatasiftActivitySerializerTest.class.getResourceAsStream("/instagram_datasift_json.txt"));
    --- End diff --
    This pattern is repeated several times, would it make sense to abstract it out to a utility
function where the user could pass in the resource name and get back a Scanner object? That
way if we needed to change encodings again for some reason, it wouldn't be as painful

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 or file a JIRA ticket
with INFRA.

View raw message