config-file/src/main/java/com/hpe/caf/config/file/FileConfigurationSource.java
private static String[] getFileExtensions(final Decoder decoder)
    {
        final Class<? extends Decoder> decoderClass = decoder.getClass();
        final FileExtensions fileExtensionsAnnotation = decoderClass.getAnnotation(FileExtensions.class);

        return (fileExtensionsAnnotation == null)
            ? new String[]{""}
            : fileExtensionsAnnotation.value();
    }
private static String[] getFileExtensions(final Decoder decoder)
    {
        final Class<? extends Decoder> decoderClass = decoder.getClass();
        final FileExtensions fileExtensionsAnnotation = decoderClass.getAnnotation(FileExtensions.class);

        return (fileExtensionsAnnotation == null)
            ? new String[]{""}
            : fileExtensionsAnnotation.value();
    }
Retrieves the file extensions to use with the specified decoder.
<p>
If the specified Decoder doesn't have any file extensions explicitly associated with it, then a single empty string is returned.