@@ -290,11 +290,11 @@ void getAllAnnotationAttributesReturnsAllAttributes() {
290290		void  getComplexAttributeTypesReturnsAll () {
291291			MultiValueMap <String , Object > attributes  =
292292					get (WithComplexAttributeTypes .class ).getAllAnnotationAttributes (ComplexAttributes .class .getName ());
293- 			assertThat (attributes ).containsOnlyKeys ("names" , "count" , "type " , "subAnnotation" );
293+ 			assertThat (attributes ).containsOnlyKeys ("names" , "count" , "types " , "subAnnotation" );
294294			assertThat (attributes .get ("names" )).hasSize (1 );
295295			assertThat (attributes .get ("names" ).get (0 )).isEqualTo (new  String []{"first" , "second" });
296- 			assertThat (attributes .get ("count" )). containsExactlyInAnyOrder ( TestEnum .ONE );
297- 			assertThat (attributes .get ("type"  )). containsExactlyInAnyOrder ( TestEnum .class );
296+ 			assertThat (attributes .get ("count" ). get ( 0 )). isEqualTo ( new   TestEnum []{ TestEnum .ONE ,  TestEnum . TWO } );
297+ 			assertThat (attributes .get ("types"  ). get ( 0 )). isEqualTo ( new   Class []{ TestEnum .class } );
298298			assertThat (attributes .get ("subAnnotation" )).hasSize (1 );
299299		}
300300
@@ -312,8 +312,8 @@ void getComplexAttributeTypesReturnsAllWithKotlinMetadata() {
312312		void  getAnnotationAttributeIntType () {
313313			MultiValueMap <String , Object > attributes  =
314314					get (WithIntType .class ).getAllAnnotationAttributes (ComplexAttributes .class .getName ());
315- 			assertThat (attributes ).containsOnlyKeys ("names" , "count" , "type " , "subAnnotation" );
316- 			assertThat (attributes .get ("type"  )). contains ( int .class );
315+ 			assertThat (attributes ).containsOnlyKeys ("names" , "count" , "types " , "subAnnotation" );
316+ 			assertThat (attributes .get ("types"  ). get ( 0 )). isEqualTo ( new   Class []{ int .class } );
317317		}
318318
319319		@ Test 
@@ -454,13 +454,13 @@ public static class WithMetaAnnotationAttributes {
454454		}
455455
456456
457- 		@ ComplexAttributes (names  = {"first" , "second" }, count  = TestEnum .ONE ,
458- 				type  = TestEnum .class , subAnnotation  = @ SubAnnotation (name ="spring" ))
457+ 		@ ComplexAttributes (names  = {"first" , "second" }, count  = { TestEnum .ONE ,  TestEnum . TWO } ,
458+ 				types  = { TestEnum .class } , subAnnotation  = @ SubAnnotation (name ="spring" ))
459459		@ Metadata (mv  = {42 })
460460		public  static  class  WithComplexAttributeTypes  {
461461		}
462462
463- 		@ ComplexAttributes (names  = "void" , count  = TestEnum .ONE , type  = int .class ,
463+ 		@ ComplexAttributes (names  = "void" , count  = TestEnum .ONE , types  = int .class ,
464464				subAnnotation  = @ SubAnnotation (name ="spring" ))
465465		public  static  class  WithIntType  {
466466
@@ -471,9 +471,9 @@ public static class WithIntType {
471471
472472			String [] names ();
473473
474- 			TestEnum  count ();
474+ 			TestEnum []  count ();
475475
476- 			Class <?>  type ();
476+ 			Class <?>[]  types ();
477477
478478			SubAnnotation  subAnnotation ();
479479		}
@@ -484,7 +484,15 @@ public static class WithIntType {
484484		}
485485
486486		public  enum  TestEnum  {
487- 			ONE , TWO , THREE 
487+ 			ONE  {
488+ 
489+ 			},
490+ 			TWO  {
491+ 
492+ 			},
493+ 			THREE  {
494+ 
495+ 			}
488496		}
489497
490498		@ RepeatableAnnotation (name  = "first" )
0 commit comments