File tree Expand file tree Collapse file tree
src/org/labkey/targetedms Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import org .jetbrains .annotations .NotNull ;
2424import org .jetbrains .annotations .Nullable ;
2525import org .labkey .api .collections .CaseInsensitiveHashMap ;
26+ import org .labkey .api .collections .LongArrayList ;
2627import org .labkey .api .collections .LongHashMap ;
2728import org .labkey .api .data .CompareType ;
2829import org .labkey .api .data .Container ;
@@ -693,7 +694,7 @@ private void deleteOldSampleFiles(ReplicateInfo replicateInfo)
693694 _log .debug ("Found data for the following old sample files in the QC folder:" );
694695 replicateInfo .oldSamplesToDelete .keySet ().forEach (key -> _log .debug (String .format (" %s" , key )));
695696
696- List <Long > existingSamples = new ArrayList <> (total );
697+ List <Long > existingSamples = new LongArrayList (total );
697698 replicateInfo .oldSamplesToDelete .forEach ((key , value ) -> value .forEach (existingSample -> existingSamples .add (existingSample .getId ())));
698699
699700 List <String > srcFiles = TargetedMSManager .deleteSampleFilesAndDependencies (existingSamples );
Original file line number Diff line number Diff line change 7373import org .labkey .api .attachments .SvgSource ;
7474import org .labkey .api .audit .AuditLogService ;
7575import org .labkey .api .audit .provider .SiteSettingsAuditProvider ;
76+ import org .labkey .api .collections .LongArrayList ;
7677import org .labkey .api .collections .LongHashMap ;
7778import org .labkey .api .data .CompareType ;
7879import org .labkey .api .data .Container ;
@@ -6312,8 +6313,8 @@ public void setSelectedInputValues(String selectedInputValues)
63126313 if (!StringUtils .isBlank (selectedInputValues ))
63136314 {
63146315 String [] vals = selectedInputValues .split ("," );
6315- _selectedIds = new ArrayList <> (vals .length );
6316- _deselectedIds = new ArrayList <> (vals .length );
6316+ _selectedIds = new LongArrayList (vals .length );
6317+ _deselectedIds = new LongArrayList (vals .length );
63176318
63186319 for (String value : vals )
63196320 {
Original file line number Diff line number Diff line change 1717
1818
1919import org .apache .commons .lang3 .StringUtils ;
20+ import org .labkey .api .collections .LongArrayList ;
2021import org .labkey .api .data .Container ;
2122import org .labkey .api .data .SQLFragment ;
2223import org .labkey .api .data .SimpleFilter ;
@@ -174,7 +175,7 @@ public static void updateStatusToDeprecatedOrNotRepresentative(long[] peptideGro
174175 {
175176 if (peptideGroupIds == null || peptideGroupIds .length == 0 )
176177 return ;
177- List <Long > peptideGroupIdList = new ArrayList <> (peptideGroupIds .length );
178+ List <Long > peptideGroupIdList = new LongArrayList (peptideGroupIds .length );
178179 for (int i = 0 ; i < peptideGroupIds .length ; i ++)
179180 {
180181 peptideGroupIdList .add (peptideGroupIds [i ]);
You can’t perform that action at this time.
0 commit comments