Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cfc5153
test: cover constructor-accessibility filtering on @SimpleBuilder (#402)
AndreasIgelCC Nov 18, 2026
209deae
feat: derive String Javadoc example values from field names (#412)
AndreasIgelCC Nov 18, 2026
112fa4a
feat: generate fluent builders for codegen model DTOs (#415)
AndreasIgelCC Nov 18, 2026
d8c56a7
refactor: rename @Ignore4BuilderGeneration to @IgnoreForBuilderGenera…
AndreasIgelCC Nov 21, 2026
548373a
fix: do not abort generation on reserved-word property names (#418)
AndreasIgelCC Nov 21, 2026
e983a17
fix: qualify colliding simple type names in generated classes (#417)
AndreasIgelCC Nov 21, 2026
dcfbc44
Merge branches 'test/issue-402-constructor-accessibility' and 'feat/i…
AndreasIgelCC Nov 21, 2026
fe144c4
Merge branch 'feat/issue-415-codegen-dto-builders' into test/generato…
AndreasIgelCC Nov 21, 2026
3a1c713
Merge branch 'fix/issue-416-rename-ignore-annotation' into test/gener…
AndreasIgelCC Nov 21, 2026
14713b3
Merge branches 'fix/issue-417-duplicate-simple-type-names' and 'fix/i…
AndreasIgelCC Nov 21, 2026
d4d1455
Add shared generator conformance suite with ServiceLoader backend dis…
AndreasIgelCC Nov 22, 2026
4bb753b
style: apply google-java-format to renamed references
devin-ai-integration[bot] Nov 22, 2026
12fac22
Merge branch 'fix/issue-416-rename-ignore-annotation' into test/issue…
devin-ai-integration[bot] Nov 22, 2026
6c9d39d
Require field names for Javadoc example value helpers
devin-ai-integration[bot] Nov 22, 2026
9f33838
fix: preserve Roaster type-use annotations in declarations
devin-ai-integration[bot] Nov 22, 2026
f4555df
Merge Roaster type-use annotation fix into conformance suite
devin-ai-integration[bot] Nov 22, 2026
44e492b
test: tighten shared generator conformance assertions
devin-ai-integration[bot] Nov 22, 2026
6aab31d
fix: derive reserved builder property names from getters
devin-ai-integration[bot] Nov 22, 2026
8d92286
Merge reserved property naming dependency for DTO builders
devin-ai-integration[bot] Nov 22, 2026
e2ae12f
Merge field-name example dependency for DTO builders
devin-ai-integration[bot] Nov 22, 2026
f9a8d39
fix: preserve wildcard type arguments in generated builders
devin-ai-integration[bot] Nov 22, 2026
ece0289
Merge wildcard type argument prerequisite for DTO builders
devin-ai-integration[bot] Nov 22, 2026
60ed4ef
feat: complete and reproducibly regenerate codegen DTO builders
devin-ai-integration[bot] Nov 22, 2026
4924ff1
Merge complete codegen DTO builders for conformance fixtures
devin-ai-integration[bot] Nov 22, 2026
d0abb33
Build conformance fixtures entirely with DTO builders
devin-ai-integration[bot] Nov 22, 2026
ddd8693
Merge remote-tracking branch 'upstream/main' into test/issue-420-gene…
devin-ai-integration[bot] Nov 22, 2026
5391768
Merge upstream/main into test/issue-420-generator-conformance-suite
devin-ai-integration[bot] Nov 23, 2026
7956f99
Merge remote-tracking branch 'upstream/main' into test/issue-420-gene…
devin-ai-integration[bot] Nov 30, 2026
19f858c
Exclude test/ci/github-actions from release notes, add breaking-chang…
devin-ai-integration[bot] Nov 30, 2026
276ab18
Merge remote-tracking branch 'upstream/main' into test/issue-420-gene…
devin-ai-integration[bot] Nov 30, 2026
fb26f57
Adapt conformance suite to final builder API: singular element-adds, …
devin-ai-integration[bot] Nov 30, 2026
a4510de
Remove obsolete JavadocExampleValuesTest duplicate blocking testCompile
devin-ai-integration[bot] Dec 6, 2026
cb60c12
Strict-review nit: text blocks with formatted instead of concatenatio…
devin-ai-integration[bot] Dec 6, 2026
17a1d1e
Merge remote-tracking branch 'upstream/main' into test/issue-420-gene…
devin-ai-integration[bot] Dec 6, 2026
e520265
Reconcile with main: migrate annotation fixtures to typed member helpers
devin-ai-integration[bot] Dec 6, 2026
c0cc02d
Normalize legal qualification variance in conformance contract
devin-ai-integration[bot] Dec 6, 2026
07774f6
Fix regeneration blocker: only exclude actual regeneration targets fr…
devin-ai-integration[bot] Dec 6, 2026
8f56529
Rework conformance normalization: canonical fully qualified form, ord…
devin-ai-integration[bot] Dec 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ jobs:
- name: Build with Maven
run: mvn -B install -Pmetrics --file pom.xml

- name: Check committed codegen DTO builders
run: |
mvn -B -pl processor -Dtest=CodegenDtoBuilderRegenerationTest -Dcodegen.regenerate=true test
mvn -B -pl codegen-core fmt:format
git diff --exit-code -- 'codegen-core/src/main/java/**/*Builder.java'

- name: License header check (incl. performance-test)
run: mvn -B license:check -Pperformance-test --file pom.xml

Expand Down
9 changes: 8 additions & 1 deletion codegen-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,14 @@
<artifactId>commons-collections4</artifactId>
<version>${commons-collections.version}</version>
</dependency>

<!-- simple-builders runtime types used by the generated builders committed alongside the
model DTOs (TrackedValue, IBuilderBase, collection builders) -->
<dependency>
<groupId>io.github.java-helpers</groupId>
<artifactId>simple-builders-core</artifactId>
<version>${project.version}</version>
</dependency>

<!-- Test Dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@
*/
public class JavadocDto implements JavadocDtoBuilder.With {

/**
* Replaces tags with a defensive copy; the DTO retains its own mutable collection.
*
* @param tags the replacement collection (not null)
* @throws NullPointerException if tags is null
*/
public void setTags(List<JavadocTagDto> tags) {
List<JavadocTagDto> copy = new ArrayList<>(tags);
this.tags.clear();
this.tags.addAll(copy);
}

/** The main description text (everything before the first tag). */
private String description;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@
*/
public class NestedTypeDto implements NestedTypeDtoBuilder.With {

/**
* Replaces methods with a defensive copy; the DTO retains its own mutable collection.
*
* @param methods the replacement collection (not null)
* @throws NullPointerException if methods is null
*/
public void setMethods(List<MethodDto> methods) {
List<MethodDto> copy = new ArrayList<>(methods);
this.methods.clear();
this.methods.addAll(copy);
}

/**
* Replaces annotations with a defensive copy; the DTO retains its own mutable collection.
*
* @param annotations the replacement collection (not null)
* @throws NullPointerException if annotations is null
*/
public void setAnnotations(List<AnnotationDto> annotations) {
List<AnnotationDto> copy = new ArrayList<>(annotations);
this.annotations.clear();
this.annotations.addAll(copy);
}

/** The simple name of the nested type (e.g., "With"). */
private String typeName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public ImportCollector addTypeImports(TypeName type) {
type.getAnnotations().forEach(this::addAnnotationImports);

// Adding the type
if (type instanceof TypeNameWildcard wildcard) {
wildcard.getBound().ifPresent(this::addTypeImports);
return this;
}
addImport(type);

return this;
Expand Down
6 changes: 6 additions & 0 deletions codegen-roaster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${plugin.maven.surefire.version}</version>
<configuration>
<!-- Run the shared generator conformance suite packaged in codegen-testing -->
<dependenciesToScan>
<dependency>io.github.java-helpers.codegen:codegen-testing</dependency>
</dependenciesToScan>
</configuration>
</plugin>

<plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* MIT License
*
* Copyright (c) 2025-2026 Andreas Igel
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

package org.javahelpers.codegen.roaster;

import org.javahelpers.codegen.CodegenBackend;
import org.javahelpers.codegen.GenerationEnvironment;
import org.javahelpers.codegen.logging.ProcessingLogger;
import org.javahelpers.codegen.testing.TestBackendProvider;

/**
* Registers the Roaster backend for the shared generator conformance suite (loaded via {@link
* java.util.ServiceLoader}).
*/
public class RoasterTestBackendProvider implements TestBackendProvider {

@Override
public String name() {
return "Roaster";
}

@Override
public CodegenBackend create(GenerationEnvironment environment, ProcessingLogger logger) {
return new RoasterBackend(
environment, logger, RoasterSourceFormatter.DEFAULT_FORMATTER_PROFILE_RESOURCE);
}

@Override
public String toString() {
return name();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.javahelpers.codegen.roaster.RoasterTestBackendProvider
2 changes: 1 addition & 1 deletion codegen-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter.version}</version>
<scope>compile</scope>
<scope>test</scope>
</dependency>

</dependencies>
Expand Down
Loading
Loading