Готовая лабораторная работа 6
This commit is contained in:
parent
92e00e4304
commit
f4373424ba
@ -156,8 +156,8 @@ public class TanksGenericStorage {
|
||||
List<String> reversedSet = Arrays.asList(set);
|
||||
Collections.reverse(reversedSet);
|
||||
for (String elem : reversedSet) {
|
||||
DrawingArmoVehicle train = ExtentionDrawingTank.CreateDrawingTank(elem, _separatorForObject, _pictureWidth, _pictureHeight);
|
||||
if (train == null || collection.Add(train) == -1)
|
||||
DrawingArmoVehicle vehicle = ExtentionDrawingTank.CreateDrawingTank(elem, _separatorForObject, _pictureWidth, _pictureHeight);
|
||||
if (vehicle == null || collection.Add(vehicle) == -1)
|
||||
return false;
|
||||
}
|
||||
_tankStorages.put(record[0], collection);
|
||||
|
Loading…
Reference in New Issue
Block a user