1 | package fr.sii.ogham.core.charset; | |
2 | ||
3 | import java.nio.charset.Charset; | |
4 | ||
5 | public class SimpleCharsetMatch implements CharsetMatch { | |
6 | private final Charset possibleCharset; | |
7 | private final int confidence; | |
8 | ||
9 | public SimpleCharsetMatch(Charset possibleCharset, int confidence) { | |
10 | super(); | |
11 | this.possibleCharset = possibleCharset; | |
12 | this.confidence = confidence; | |
13 | } | |
14 | ||
15 | @Override | |
16 | public Charset getPossibleCharset() { | |
17 |
1
1. getPossibleCharset : replaced return value with null for fr/sii/ogham/core/charset/SimpleCharsetMatch::getPossibleCharset → NO_COVERAGE |
return possibleCharset; |
18 | } | |
19 | ||
20 | @Override | |
21 | public int getConfidence() { | |
22 |
1
1. getConfidence : replaced int return with 0 for fr/sii/ogham/core/charset/SimpleCharsetMatch::getConfidence → NO_COVERAGE |
return confidence; |
23 | } | |
24 | } | |
Mutations | ||
17 |
1.1 |
|
22 |
1.1 |