From b2745b6422adac7991d2125afc5f8c703f2b899e Mon Sep 17 00:00:00 2001 From: Mizuo Date: Mon, 30 Dec 2024 00:53:08 +0100 Subject: [PATCH] checkstyle & set picker modifier to private --- src/main/java/core/basesyntax/ColorSupplier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/core/basesyntax/ColorSupplier.java b/src/main/java/core/basesyntax/ColorSupplier.java index d3c80c475..5e55ae5b7 100644 --- a/src/main/java/core/basesyntax/ColorSupplier.java +++ b/src/main/java/core/basesyntax/ColorSupplier.java @@ -3,7 +3,7 @@ import java.util.Random; public class ColorSupplier { - int picker = new Random().nextInt(Color.values().length); + private final int picker = new Random().nextInt(Color.values().length); public Color getRandomColor() { return Color.values()[picker];