Skip to content

Commit

Permalink
iluwatar#631 - Partial Response : [Refactor] Inline object creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gopinath-langote committed Sep 22, 2017
1 parent 06b5c67 commit dba2d8a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public static void main(String[] args) throws Exception {
videos.put(1, new Video(1, "Avatar", 178, "epic science fiction film", "James Cameron", "English"));
videos.put(2, new Video(2, "Godzilla Resurgence", 120, "Action & drama movie|", "Hideaki Anno", "Japanese"));
videos.put(3, new Video(3, "Interstellar", 169, "Adventure & Sci-Fi", "Christopher Nolan", "English"));
FieldJsonMapper fieldJsonMapper = new FieldJsonMapper();
VideoResource videoResource = new VideoResource(fieldJsonMapper, videos);
VideoResource videoResource = new VideoResource(new FieldJsonMapper(), videos);


LOGGER.info("Retrieving full response from server:-");
Expand Down

0 comments on commit dba2d8a

Please sign in to comment.