Skip to content

Commit

Permalink
Rename MetaData.Factory (#265)
Browse files Browse the repository at this point in the history
* fix list name clash

* rename MetaData.Factory
  • Loading branch information
SentryMan authored Dec 9, 2024
1 parent e229d6b commit d565dd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void read() {
private void readMetaData(TypeElement moduleType) {
for (final AnnotationMirror annotationMirror : moduleType.getAnnotationMirrors()) {
final MetaDataPrism metaData = MetaDataPrism.getInstance(annotationMirror);
final FactoryPrism metaDataFactory = FactoryPrism.getInstance(annotationMirror);
final ValidFactoryPrism metaDataFactory = ValidFactoryPrism.getInstance(annotationMirror);
final AnnotationFactoryPrism metaDataAnnotationFactory = AnnotationFactoryPrism.getInstance(annotationMirror);

if (metaData != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void writeClassStart() {
.map(s -> s.getQualifiedName().toString())
.toList();
if (!factories.isEmpty()) {
writer.append("@MetaData.Factory({");
writer.append("@MetaData.ValidFactory({");
writeMetaDataEntry(annotationFactories);
writer.append("})").eol();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@GeneratePrism(io.avaje.validation.adapter.ConstraintAdapter.class)
@GeneratePrism(io.avaje.validation.ImportValidPojo.class)
@GeneratePrism(io.avaje.validation.spi.MetaData.class)
@GeneratePrism(io.avaje.validation.spi.MetaData.Factory.class)
@GeneratePrism(io.avaje.validation.spi.MetaData.ValidFactory.class)
@GeneratePrism(io.avaje.validation.spi.MetaData.AnnotationFactory.class)
@GeneratePrism(io.avaje.validation.MixIn.class)
@GeneratePrism(org.jspecify.annotations.NullMarked.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* For internal use, holds metadata on generated adapters that also have factories.
*/
@interface Factory {
@interface ValidFactory {

/**
* The generated ValidationAdapters that have a factory.
Expand Down

0 comments on commit d565dd5

Please sign in to comment.