From 775011db7749c2bbd06b33f5775762b3e2842ab1 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Sat, 11 Nov 2017 15:01:43 +0100 Subject: [PATCH] Make info item fields final --- src/main/java/org/schabi/newpipe/extractor/InfoItem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/schabi/newpipe/extractor/InfoItem.java b/src/main/java/org/schabi/newpipe/extractor/InfoItem.java index c4003b72b..44ec1f651 100644 --- a/src/main/java/org/schabi/newpipe/extractor/InfoItem.java +++ b/src/main/java/org/schabi/newpipe/extractor/InfoItem.java @@ -24,9 +24,9 @@ import java.io.Serializable; public abstract class InfoItem implements Serializable { public final InfoType info_type; - public int service_id = -1; - public String url; - public String name; + public final int service_id; + public final String url; + public final String name; public String thumbnail_url; public InfoItem(InfoType infoType, int serviceId, String url, String name) {