X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fencoder%2FFormatsRegistry.java;h=0ceffebcec44bbe51c003544743b79b95a43f20a;hb=567410640f4e0428caf9de9fc83df4c73f0e5067;hp=7395c3143a2fa4c2cf541b18ef95e9f0fcae7671;hpb=1b742640af99284aae1cd10c259254137316ba7c;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/FormatsRegistry.java b/src/main/java/eu/svjatoslav/meviz/encoder/FormatsRegistry.java index 7395c31..0ceffeb 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/FormatsRegistry.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/FormatsRegistry.java @@ -1,11 +1,11 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. - */ + * modify it under the terms of version 3 of the GNU Lesser General Public License + * or later as published by the Free Software Foundation. +*/ package eu.svjatoslav.meviz.encoder; @@ -16,7 +16,7 @@ import java.util.List; public class FormatsRegistry { - public ArrayList encoders = new ArrayList(); + private final ArrayList encoders = new ArrayList<>(); public FormatsRegistry() { // video conversion @@ -42,7 +42,7 @@ public class FormatsRegistry { final String sourceFormatLowerCase = sourceFormat.toLowerCase(); final String targetFormatLowerCase = targetFormat.toLowerCase(); - final ArrayList encoders = new ArrayList(); + final ArrayList encoders = new ArrayList<>(); for (final AbstractConverter encoder : this.encoders) if (encoder.supportsSource(sourceFormatLowerCase)) @@ -54,7 +54,7 @@ public class FormatsRegistry { return encoders; } - public void registerEncoder(final AbstractConverter encoder) { + private void registerEncoder(final AbstractConverter encoder) { encoders.add(encoder); }