Skip to content

Commit

Permalink
Resolve generic wild card.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jan 20, 2025
1 parent 3fd08b8 commit 25622d8
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2014, 2024 Lablicate GmbH.
* Copyright (c) 2014, 2025 Lablicate GmbH.
*
* All rights reserved.
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -39,7 +39,6 @@
import org.eclipse.chemclipse.csd.model.core.IChromatogramCSD;
import org.eclipse.chemclipse.model.core.IChromatogram;
import org.eclipse.chemclipse.model.core.IChromatogramOverview;
import org.eclipse.chemclipse.model.core.IPeak;
import org.eclipse.chemclipse.model.core.IScan;
import org.eclipse.chemclipse.msd.converter.supplier.ocx.io.ChromatogramReaderMSD;
import org.eclipse.chemclipse.xxd.converter.supplier.ocx.internal.support.Format;
Expand Down Expand Up @@ -165,7 +164,6 @@ private IChromatogramCSDZipReader getChromatogramReader(String version) {
return chromatogramReader;
}

@SuppressWarnings("unchecked")
private IChromatogramCSD createChromatogramFIDFromMSD(File file, IProgressMonitor monitor) throws IOException {

IChromatogramCSD chromatogramFID = null;
Expand All @@ -175,8 +173,7 @@ private IChromatogramCSD createChromatogramFIDFromMSD(File file, IProgressMonito
if(PreferenceSupplier.isForceLoadAlternateDetector()) {
ChromatogramReaderMSD chromatogramReaderMSD = new ChromatogramReaderMSD();
IChromatogramOverview chromatogramOverview = chromatogramReaderMSD.readOverview(file, monitor);
if(chromatogramOverview instanceof IChromatogram) {
IChromatogram<? extends IPeak> chromatogram = (IChromatogram<? extends IPeak>)chromatogramOverview;
if(chromatogramOverview instanceof IChromatogram<?> chromatogram) {
chromatogramFID = new VendorChromatogram();
for(IScan scan : chromatogram.getScans()) {
IVendorScan scanCSD = new VendorScan(scan.getRetentionTime(), scan.getTotalSignal());
Expand Down

0 comments on commit 25622d8

Please sign in to comment.