package com.alexstyl.specialdates.images;

public final class DecodedImage {

    public static final DecodedImage EMPTY = new DecodedImage(null);

    private final byte[] bytes;

    DecodedImage(byte[] bytes) {
        this.bytes = bytes;
    }

    public byte[] getBytes() {
        return bytes;
    }
}

package com.alexstyl.specialdates.images;

public final class DecodedImage {

    public static final DecodedImage EMPTY = new DecodedImage(null);

    private final byte[] bytes;

    DecodedImage(byte[] bytes) {
        this.bytes = bytes;
    }

    public byte[] getBytes() {
        return bytes.clone();
    }
}

Return copy of array on the getter
Return copy of array on the getter
