Cannot subclass TransformationOptionsConverter (#598)

Change access modifier from private to protected for TransformationOptionsConverter#Setter interface and TransformationOptionsConverter#ifSet as TransformationOptionsConverter is required to be sub-classed by custom legacy Transformers.
This commit is contained in:
Alexandru-Eusebiu Epure
2019-09-18 17:10:43 +03:00
committed by GitHub
parent 648a29181b
commit a50c5c7248

View File

@@ -104,7 +104,7 @@ public class TransformationOptionsConverter implements InitializingBean
ALLOW_ENLARGEMENT, MAINTAIN_ASPECT_RATIO
}));
private static Set<String> IMAGE_OPTIONS = new HashSet<>();
protected static Set<String> IMAGE_OPTIONS = new HashSet<>();
static
{
IMAGE_OPTIONS.addAll(PAGED_OPTIONS);
@@ -313,7 +313,7 @@ public class TransformationOptionsConverter implements InitializingBean
return transformationOptions;
}
private <T> void ifSet(Map<String, String> options, String key, TransformationOptionsConverter.Setter setter)
protected <T> void ifSet(Map<String, String> options, String key, TransformationOptionsConverter.Setter setter)
{
String value = options.get(key);
if (value != null)