1 | package fr.sii.ogham.core.util; | |
2 | ||
3 | import java.util.Base64; | |
4 | ||
5 | public final class Base64Utils { | |
6 | /** | |
7 | * Encode the byte array to a base64 string. | |
8 | * | |
9 | * <p> | |
10 | * {@link Base64#getEncoder()} is used. | |
11 | * | |
12 | * @param bytes | |
13 | * the bytes to encode | |
14 | * @return the base64 string | |
15 | */ | |
16 | public static String encodeToString(byte[] bytes) { | |
17 |
3
1. encodeToString : replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → NO_COVERAGE 2. encodeToString : replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → KILLED 3. encodeToString : replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → KILLED |
return Base64.getEncoder().encodeToString(bytes); |
18 | } | |
19 | ||
20 | private Base64Utils() { | |
21 | super(); | |
22 | } | |
23 | } | |
Mutations | ||
17 |
1.1 2.2 3.3 |