1717
1818import com .fasterxml .jackson .annotation .JsonCreator ;
1919import com .fasterxml .jackson .annotation .JsonProperty ;
20- import org .apache .commons .lang3 .StringUtils ;
20+ import org .apache .commons .lang3 .Strings ;
2121import org .labkey .api .data .DbScope ;
2222import org .labkey .api .data .RuntimeSQLException ;
2323import org .labkey .api .data .Table ;
@@ -69,7 +69,7 @@ public Import454ReadsJob(ViewBackgroundInfo info, PipeRoot root, File reads, Gen
6969 super (Import454ReadsPipelineProvider .NAME , info , root , run );
7070 FileLike verifiedFileLike = FileSystemLike .getVerifiedFileLike (root .getContainer (), reads .getAbsolutePath ());
7171 _reads = FileSystemLike .toFile (verifiedFileLike );
72- setLogFile (verifiedFileLike .getParent ().resolveChild (FileUtil .makeFileNameWithTimestamp ("import_reads" , "log" )). toNioPathForWrite () );
72+ setLogFile (verifiedFileLike .getParent ().resolveChild (FileUtil .makeFileNameWithTimestamp ("import_reads" , "log" )));
7373 }
7474
7575 @ Override
@@ -91,7 +91,7 @@ public void run()
9191 }
9292 catch (SQLException se )
9393 {
94- if (RuntimeSQLException .isConstraintException (se ) && StringUtils . containsIgnoreCase (se .getMessage (), "uq_reads_name" ))
94+ if (RuntimeSQLException .isConstraintException (se ) && Strings . CI . contains (se .getMessage (), "uq_reads_name" ))
9595 throw new RuntimeException ("A readname in this file already exists in the database; this run may have been imported previously" , se );
9696 else
9797 throw se ;
@@ -126,8 +126,7 @@ private void importReads() throws IOException, SQLException, PipelineJobExceptio
126126
127127 try (TabLoader loader = new TabLoader (_reads , true ))
128128 {
129- List <ColumnDescriptor > columns = new ArrayList <>();
130- columns .addAll (Arrays .asList (loader .getColumns ()));
129+ List <ColumnDescriptor > columns = new ArrayList <>(Arrays .asList (loader .getColumns ()));
131130
132131 for (ColumnDescriptor col : columns )
133132 {
0 commit comments