File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed 
hibernate-core/src/main/java/org/hibernate/tuple/entity Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5959import  org .checkerframework .checker .nullness .qual .Nullable ;
6060
6161import  static  java .util .Collections .singleton ;
62+ import  static  java .util .Collections .unmodifiableSet ;
6263import  static  org .hibernate .internal .CoreLogging .messageLogger ;
6364import  static  org .hibernate .internal .util .ReflectHelper .isAbstractClass ;
6465import  static  org .hibernate .internal .util .ReflectHelper .isFinalClass ;
@@ -193,10 +194,11 @@ public EntityMetamodel(
193194			final  Set <String > idAttributeNames ;
194195			if  ( identifierMapperComponent  != null  ) {
195196				nonAggregatedCidMapper  = identifierMapperComponent .getType ();
196- 				idAttributeNames   = new  HashSet <>(  );
197+ 				HashSet < String >  tmpSet   = new  HashSet <>();
197198				for  ( Property  property  : identifierMapperComponent .getProperties () ) {
198- 					idAttributeNames .add ( property .getName () );
199+ 					tmpSet .add ( property .getName () );
199200				}
201+ 				idAttributeNames  = toSmallSet ( unmodifiableSet ( tmpSet  ) );
200202			}
201203			else  {
202204				nonAggregatedCidMapper  = null ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments