11/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
22 *
3- * Copyright © 2025 microBean™.
3+ * Copyright © 2025–2026 microBean™.
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
66 * the License. You may obtain a copy of the License at
1515
1616import java .util .List ;
1717
18+ import javax .lang .model .element .AnnotationMirror ;
1819import javax .lang .model .element .TypeElement ;
1920
2021import javax .lang .model .type .DeclaredType ;
2122import javax .lang .model .type .TypeMirror ;
2223
23- import org .microbean .attributes .Attributes ;
24-
2524import org .microbean .bean .BeanTypeList ;
2625import org .microbean .bean .Id ;
2726
3433import static org .microbean .bean .BeanTypes .proxiableBeanType ;
3534
3635/**
37- * Information about a proxy .
36+ * Information about what requirements a {@link Proxy} must fulfil .
3837 *
3938 * @author <a href="https://about.me/lairdnelson" target="_top">Laird Nelson</a>
4039 */
@@ -53,7 +52,7 @@ public class ProxySpecification {
5352
5453 private final List <TypeMirror > interfaces ;
5554
56- private final List <Attributes > attributes ;
55+ private final List <AnnotationMirror > annotations ;
5756
5857 private final String name ;
5958
@@ -79,7 +78,7 @@ public class ProxySpecification {
7978 public ProxySpecification (final Domain domain , final Id id ) {
8079 super ();
8180 this .domain = domain ; // not nullable
82- this .attributes = id .attributes ();
81+ this .annotations = id .annotations ();
8382 final BeanTypeList types = id .types ();
8483 final TypeMirror t = types .get (0 ); // putative superclass
8584 if (t .getKind () != DECLARED || domain .javaLangObject (t ) && types .size () == 1 ) {
@@ -125,7 +124,7 @@ public boolean equals(final Object other) {
125124 return false ;
126125 }
127126 }
128- return this .attributes ().equals (her .attributes ());
127+ return this .annotations ().equals (her .annotations ());
129128 } else {
130129 return false ;
131130 }
@@ -137,17 +136,17 @@ public int hashCode() {
137136 hashCode = 17 * hashCode + this .domain .hashCode ();
138137 hashCode = 17 * hashCode + this .superclass ().hashCode ();
139138 hashCode = 17 * hashCode + this .interfaces ().hashCode ();
140- hashCode = 17 * hashCode + this .attributes ().hashCode ();
139+ hashCode = 17 * hashCode + this .annotations ().hashCode ();
141140 return hashCode ;
142141 }
143142
144143 /**
145- * Returns an immutable {@link List} of {@link Attributes} describing this {@link ProxySpecification}.
144+ * Returns an immutable {@link List} of {@link AnnotationMirror}s describing this {@link ProxySpecification}.
146145 *
147- * @return a non-{@code null}, immutable {@link List} of {@link Attributes } instances
146+ * @return a non-{@code null}, immutable {@link List} of {@link AnnotationMirror } instances
148147 */
149- public final List <Attributes > attributes () {
150- return this .attributes ;
148+ public final List <AnnotationMirror > annotations () {
149+ return this .annotations ;
151150 }
152151
153152 /**
0 commit comments