From 6b543de74e2bb157a8a97e0782ffef0eabc195f5 Mon Sep 17 00:00:00 2001 From: "pyzhov.egor" <142977368+nxf1ve@users.noreply.github.com> Date: Mon, 12 Feb 2024 00:18:53 +0400 Subject: [PATCH] 1.0 --- ProjectCatamaran/src/DrawningCatamaranPaddle.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectCatamaran/src/DrawningCatamaranPaddle.java b/ProjectCatamaran/src/DrawningCatamaranPaddle.java index b95a33d..b2a7571 100644 --- a/ProjectCatamaran/src/DrawningCatamaranPaddle.java +++ b/ProjectCatamaran/src/DrawningCatamaranPaddle.java @@ -2,13 +2,13 @@ import java.awt.*; public class DrawningCatamaranPaddle { private PaddlesCount _paddlesCount; - private EntityCatamaran _entityCatamaran; + private final EntityCatamaran _entityCatamaran; public DrawningCatamaranPaddle(EntityCatamaran entityCatamaran) { _entityCatamaran = entityCatamaran; } public void setEnumNumber(int paddlesCount) { - for (PaddlesCount val : _paddlesCount.values()) { + for (PaddlesCount val : PaddlesCount.values()) { if (val.enumNumber == paddlesCount) { _paddlesCount = val; return;