1 | package fr.sii.ogham.core.translator.resource; | |
2 | ||
3 | import fr.sii.ogham.core.resource.Resource; | |
4 | import fr.sii.ogham.email.exception.attachment.translator.ResourceTranslatorException; | |
5 | ||
6 | /** | |
7 | * Apply no transformation at all. Just provide the received resource as the | |
8 | * result. This may be useful to avoid null values. | |
9 | * | |
10 | * @author Aurélien Baudet | |
11 | * | |
12 | */ | |
13 | public class DefaultResourceTranslator implements AttachmentResourceTranslator { | |
14 | ||
15 | @Override | |
16 | public Resource translate(Resource resource) throws ResourceTranslatorException { | |
17 |
1
1. translate : replaced return value with null for fr/sii/ogham/core/translator/resource/DefaultResourceTranslator::translate → NO_COVERAGE |
return resource; |
18 | } | |
19 | ||
20 | } | |
Mutations | ||
17 |
1.1 |