X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fload%2FGenericFileFilter.java;h=733dee65e214f11e25b7816f1d9c2eca9a8e9b4b;hp=3af4d9e05ef704abc0bf95c7506462599a6dbb63;hb=f35b6d628f68e3b5ef19965ad8988d0dd1eb8efa;hpb=3745d70b1427bb8ac1a085e47cbdc566936784e1 diff --git a/tim/prune/load/GenericFileFilter.java b/tim/prune/load/GenericFileFilter.java index 3af4d9e..733dee6 100644 --- a/tim/prune/load/GenericFileFilter.java +++ b/tim/prune/load/GenericFileFilter.java @@ -31,9 +31,8 @@ public class GenericFileFilter extends FileFilter _threeCharSuffixes = new String[inSuffixes.length]; _fourCharSuffixes = new String[inSuffixes.length]; int threeIndex = 0, fourIndex = 0; - for (int i=0; i 4) { // Check for three character suffixes @@ -93,15 +92,14 @@ public class GenericFileFilter extends FileFilter * @param inAllowedSuffixes array of allowed suffixes * @return true if accepted, false otherwise */ - public boolean acceptFilename(String inSuffixToCheck, String[] inAllowedSuffixes) + private static boolean acceptFilename(String inSuffixToCheck, String[] inAllowedSuffixes) { if (inSuffixToCheck != null && inAllowedSuffixes != null) { // Loop over allowed suffixes - for (int i=0; i