Skip to content

Commit

Permalink
Correct checkstyle failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gbadner committed Apr 15, 2021
1 parent e859ea7 commit 21d7d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static class TrackingEnabledStrategyBuilder {

public Map<Class<?>, Boolean> build() {
final Set<Class<?>> beanClassesInPath = new HashSet<>();
for (BeanMetaData<?> beanMetadata : beanMetaDataManager.getBeanMetaData() ) {
for ( BeanMetaData<?> beanMetadata : beanMetaDataManager.getBeanMetaData() ) {
determineTrackingRequired( beanMetadata.getBeanClass(), beanClassesInPath );
if ( !beanClassesInPath.isEmpty() ) {
throw new IllegalStateException( "beanClassesInPath not empty" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
package org.hibernate.validator.test.internal.engine.tracking;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Valid;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.PredefinedScopeHibernateValidator;
import org.hibernate.validator.test.predefinedscope.LocaleResolverTest;
import org.hibernate.validator.testutils.ValidatorUtil;
import org.testng.annotations.Test;

import static org.testng.Assert.assertTrue;
Expand Down Expand Up @@ -75,7 +70,7 @@ private Validator getValidator() {
return Validation.byProvider( PredefinedScopeHibernateValidator.class )
.configure()
.builtinConstraints( new HashSet<>( Arrays.asList( NotNull.class.getName() ) ) )
.initializeBeanMetaData( new HashSet<>( Arrays.asList( Parent.class, Child.class, Other.class) ) )
.initializeBeanMetaData( new HashSet<>( Arrays.asList( Parent.class, Child.class, Other.class ) ) )
.buildValidatorFactory()
.getValidator();
}
Expand Down

0 comments on commit 21d7d7b

Please sign in to comment.