Skip to content

Commit

Permalink
Avoid using boxed boolean types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Oct 9, 2024
1 parent 6409498 commit a481c15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public IMassSpectra read(File file, IProgressMonitor monitor) throws IOException
massSpectrum.setFile(file);
massSpectrum.setIdentifier(file.getName());
for(DataProcessing dataProcessing : msrun.getDataProcessing()) {
if(dataProcessing.isCentroided()) {
if(Boolean.TRUE.equals(dataProcessing.isCentroided())) {
massSpectrum.setMassSpectrumType(MassSpectrumType.CENTROID);
} else {
massSpectrum.setMassSpectrumType(MassSpectrumType.PROFILE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public IMassSpectra read(File file, IProgressMonitor monitor) throws IOException
massSpectrum.setFile(file);
massSpectrum.setIdentifier(file.getName());
for(DataProcessing dataProcessing : msrun.getDataProcessing()) {
if(dataProcessing.isCentroided()) {
if(Boolean.TRUE.equals(dataProcessing.isCentroided())) {
massSpectrum.setMassSpectrumType(MassSpectrumType.CENTROID);
} else {
massSpectrum.setMassSpectrumType(MassSpectrumType.PROFILE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public IMassSpectra read(File file, IProgressMonitor monitor) throws IOException
massSpectrum.setFile(file);
massSpectrum.setIdentifier(file.getName());
for(DataProcessing dataProcessing : msrun.getDataProcessing()) {
if(dataProcessing.isCentroided()) {
if(Boolean.TRUE.equals(dataProcessing.isCentroided())) {
massSpectrum.setMassSpectrumType(MassSpectrumType.CENTROID);
} else {
massSpectrum.setMassSpectrumType(MassSpectrumType.PROFILE);
Expand Down

0 comments on commit a481c15

Please sign in to comment.