From f4373424ba4c40086bb830af1f06c3f94d11b484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=91=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=D0=BD=D0=B8=D0=BD?= Date: Tue, 5 Dec 2023 02:01:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/src/TanksGenericStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tank/src/TanksGenericStorage.java b/Tank/src/TanksGenericStorage.java index a6760e6..624d8d1 100644 --- a/Tank/src/TanksGenericStorage.java +++ b/Tank/src/TanksGenericStorage.java @@ -156,8 +156,8 @@ public class TanksGenericStorage { List 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);