mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
committed by
GitHub
parent
648a29181b
commit
a50c5c7248
@@ -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)
|
||||
|
Reference in New Issue
Block a user