Skip to content

Commit 948e131

Browse files
committed
README: Use pattern variable
1 parent 791cf64 commit 948e131

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ public class ReadPlaylistExample {
7878
System.exit(-1);
7979
}
8080
specificPlaylist.toPlaylist().getRootSequence().getComponents().forEach(component -> {
81-
if (component instanceof Media) {
82-
Media media = (Media) component;
81+
if (component instanceof Media media) {
8382
System.out.printf("Media with content-source=%s\n", media.getSource().toString());
8483
}
8584
});

0 commit comments

Comments
 (0)