diff --git a/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/converter/BinaryWriter.java b/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/converter/BinaryWriter.java index 2cbcdc0007..b022e314f1 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/converter/BinaryWriter.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/converter/BinaryWriter.java @@ -34,7 +34,6 @@ public static BinaryDataArrayType createBinaryData(float[] values) { byteBuffer.order(ByteOrder.LITTLE_ENDIAN); byteBuffer.asFloatBuffer().put(floatBuffer); BinaryDataArrayType binaryDataArrayType = createBinaryDataArray(byteBuffer); - binaryDataArrayType.setArrayLength(BigInteger.valueOf(values.length)); CVParamType cvParamDataType = new CVParamType(); cvParamDataType.setAccession("MS:1000521"); cvParamDataType.setName("32-bit float"); @@ -49,7 +48,6 @@ public static BinaryDataArrayType createBinaryData(double[] values) { byteBuffer.order(ByteOrder.LITTLE_ENDIAN); byteBuffer.asDoubleBuffer().put(doubleBuffer); BinaryDataArrayType binaryDataArrayType = createBinaryDataArray(byteBuffer); - binaryDataArrayType.setArrayLength(BigInteger.valueOf(values.length)); CVParamType cvParamDataType = new CVParamType(); cvParamDataType.setAccession("MS:1000523"); cvParamDataType.setName("64-bit float"); diff --git a/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/v110/model/BinaryDataArrayType.java b/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/v110/model/BinaryDataArrayType.java index 0d1487ec1a..b3be827559 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/v110/model/BinaryDataArrayType.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.msd.converter.supplier.mzml/src/org/eclipse/chemclipse/msd/converter/supplier/mzml/internal/v110/model/BinaryDataArrayType.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015, 2018 Lablicate GmbH. + * Copyright (c) 2015, 2021 Lablicate GmbH. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -12,6 +12,7 @@ package org.eclipse.chemclipse.msd.converter.supplier.mzml.internal.v110.model; import java.math.BigInteger; + import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; @@ -28,7 +29,7 @@ public class BinaryDataArrayType extends ParamGroupType { private byte[] binary; @XmlAttribute(name = "arrayLength") @XmlSchemaType(name = "nonNegativeInteger") - private BigInteger arrayLength; + private BigInteger arrayLength; // optional, may override defaultArrayLength, not to be used for m/z, intensity and time @XmlAttribute(name = "dataProcessingRef") @XmlIDREF @XmlSchemaType(name = "IDREF")