|
34 | 34 | @SuppressWarnings({"ConstantName", "InnerAssignment"}) // keep unusual names and inner assignments |
35 | 35 | public final class ServiceList { |
36 | 36 | private ServiceList() { |
37 | | - //no instance |
| 37 | + // no instance |
38 | 38 | } |
39 | 39 |
|
40 | | - public static final YoutubeService YouTube; |
41 | | - public static final SoundcloudService SoundCloud; |
42 | | - public static final MediaCCCService MediaCCC; |
43 | | - public static final PeertubeService PeerTube; |
44 | | - public static final BandcampService Bandcamp; |
| 40 | + public static final YoutubeService YouTube = new YoutubeService(0); |
| 41 | + public static final SoundcloudService SoundCloud = new SoundcloudService(1); |
| 42 | + public static final MediaCCCService MediaCCC = new MediaCCCService(2); |
| 43 | + public static final PeertubeService PeerTube = new PeertubeService(3); |
| 44 | + public static final BandcampService Bandcamp = new BandcampService(4); |
45 | 45 |
|
46 | 46 | /** |
47 | 47 | * When creating a new service, put this service in the end of this list, |
48 | 48 | * and give it the next free id. |
49 | 49 | */ |
50 | 50 | private static final List<StreamingService> SERVICES = Collections.unmodifiableList( |
51 | | - Arrays.asList( |
52 | | - YouTube = new YoutubeService(0), |
53 | | - SoundCloud = new SoundcloudService(1), |
54 | | - MediaCCC = new MediaCCCService(2), |
55 | | - PeerTube = new PeertubeService(3), |
56 | | - Bandcamp = new BandcampService(4) |
57 | | - )); |
| 51 | + Arrays.asList(YouTube, SoundCloud, MediaCCC, PeerTube, Bandcamp)); |
58 | 52 |
|
59 | 53 | /** |
60 | 54 | * Get all the supported services. |
|
0 commit comments