<BUG>}public static DeviceInfo valueOf(byte[] bytes) {Validators.validateNonNull("bytes", bytes);try (PtpInputStream pis = new PtpInputStream(bytes)) {</BUG><CONTEXT>this.imageFormats = imageFormats;this.manufacturer = manufacturer;this.model = model;this.deviceVersion = deviceVersion;this.serialNumber = serialNumber;<extra_id_0>return read(pis);</CONTEXT>
public static DeviceInfo read(InputStream is) throws IOException {try (PtpInputStream pis = new PtpInputStream(is)) {