squash diverse compiler warnings

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-05-17 19:28:16 +02:00 committed by Steve Ebersole
parent ef4c20debb
commit cda6e58427
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class BasicDotIdentifierConsumer implements DotIdentifierConsumer {
reset();
}
if ( pathSoFar.length() != 0 ) {
if ( !pathSoFar.isEmpty() ) {
pathSoFar.append( '.' );
}
pathSoFar.append( identifier );

View File

@ -12,6 +12,7 @@ import java.util.Collection;
import java.util.List;
import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
import org.hibernate.metamodel.model.domain.EntityDomainType;