From 3efab45f048d72a33baf8c0178bb425fec99d619 Mon Sep 17 00:00:00 2001 From: Piotr Hic Date: Sun, 22 Dec 2024 10:28:45 +0100 Subject: [PATCH] v13 --- src/main/java/core/basesyntax/PasswordValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/core/basesyntax/PasswordValidator.java b/src/main/java/core/basesyntax/PasswordValidator.java index c0a215893..16e06df68 100644 --- a/src/main/java/core/basesyntax/PasswordValidator.java +++ b/src/main/java/core/basesyntax/PasswordValidator.java @@ -3,7 +3,7 @@ public class PasswordValidator { public void validate(String password, String repeatPassword) throws PasswordValidationException { - if (!(password.equals ( repeatPassword ) && password.length ( ) >= 10)) { + if (!(password.equals(repeatPassword) && password.length() >= 10)) { throw new PasswordValidationException("Wrong passwords"); } }