Skip to content

Commit dba2d8a

Browse files
iluwatar#631 - Partial Response : [Refactor] Inline object creation.
1 parent 06b5c67 commit dba2d8a

File tree

1 file changed

+1
-2
lines changed
  • partial-response/src/main/java/com/iluwatar/partialresponse

1 file changed

+1
-2
lines changed

partial-response/src/main/java/com/iluwatar/partialresponse/App.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ public static void main(String[] args) throws Exception {
5252
videos.put(1, new Video(1, "Avatar", 178, "epic science fiction film", "James Cameron", "English"));
5353
videos.put(2, new Video(2, "Godzilla Resurgence", 120, "Action & drama movie|", "Hideaki Anno", "Japanese"));
5454
videos.put(3, new Video(3, "Interstellar", 169, "Adventure & Sci-Fi", "Christopher Nolan", "English"));
55-
FieldJsonMapper fieldJsonMapper = new FieldJsonMapper();
56-
VideoResource videoResource = new VideoResource(fieldJsonMapper, videos);
55+
VideoResource videoResource = new VideoResource(new FieldJsonMapper(), videos);
5756

5857

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

0 commit comments

Comments
 (0)