Updated copyright message.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / FormatsRegistry.java
index 7395c31..cd34f10 100755 (executable)
@@ -1,6 +1,6 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2018, 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
@@ -16,7 +16,7 @@ import java.util.List;
 
 public class FormatsRegistry {
 
-    public ArrayList<AbstractConverter> encoders = new ArrayList<AbstractConverter>();
+    private final ArrayList<AbstractConverter> 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<AbstractConverter> encoders = new ArrayList<AbstractConverter>();
+        final ArrayList<AbstractConverter> 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);
     }