Skip to content

Commit bff7cfc

Browse files
Integer.equals(Long) is no good
1 parent dd42e4f commit bff7cfc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/IlluminaFastqSplitter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
import java.util.Set;
4343
import java.util.zip.GZIPOutputStream;
4444

45+
import static org.labkey.api.exp.api.ExperimentService.asLong;
46+
4547
/**
4648
* This is designed to parse the FASTQ files produced by a single run on an illumina instructment and produce one gzipped FASTQ
4749
* for each sample in that run. Parsing that CSV file to obtain the sample list is upstream of this class.
@@ -232,11 +234,11 @@ private FastqWriter getWriter(String illuminaSampleId, File targetDir, int pairN
232234
else
233235
{
234236
String suffix;
235-
if (Integer.valueOf(0).equals(sampleId))
237+
if (asLong(0L).equals(asLong(sampleId)))
236238
{
237239
suffix = "Control";
238240
}
239-
else if (sampleId == null || Integer.valueOf(-1).equals(sampleId))
241+
else if (sampleId == null || asLong(-1L).equals(asLong(sampleId)))
240242
{
241243
suffix = "Undetermined";
242244
}

0 commit comments

Comments
 (0)