-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3689 from Rawi01/nested-javadoc
Generate javadoc for nested classes
- Loading branch information
Showing
4 changed files
with
173 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
test/transform/resource/after-delombok/BuilderNestedJavadoc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
public class BuilderNestedJavadoc { | ||
public static class NestedClass { | ||
/** | ||
* Example javadoc | ||
*/ | ||
String name; | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
NestedClass(final String name) { | ||
this.name = name; | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public static class NestedClassBuilder { | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
private String name; | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
NestedClassBuilder() { | ||
} | ||
/** | ||
* Example javadoc | ||
* @return {@code this}. | ||
*/ | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public BuilderNestedJavadoc.NestedClass.NestedClassBuilder name(final String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public BuilderNestedJavadoc.NestedClass build() { | ||
return new BuilderNestedJavadoc.NestedClass(this.name); | ||
} | ||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public java.lang.String toString() { | ||
return "BuilderNestedJavadoc.NestedClass.NestedClassBuilder(name=" + this.name + ")"; | ||
} | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public static BuilderNestedJavadoc.NestedClass.NestedClassBuilder builder() { | ||
return new BuilderNestedJavadoc.NestedClass.NestedClassBuilder(); | ||
} | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
BuilderNestedJavadoc() { | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public static class BuilderNestedJavadocBuilder { | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
BuilderNestedJavadocBuilder() { | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public BuilderNestedJavadoc build() { | ||
return new BuilderNestedJavadoc(); | ||
} | ||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public java.lang.String toString() { | ||
return "BuilderNestedJavadoc.BuilderNestedJavadocBuilder()"; | ||
} | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public static BuilderNestedJavadoc.BuilderNestedJavadocBuilder builder() { | ||
return new BuilderNestedJavadoc.BuilderNestedJavadocBuilder(); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
test/transform/resource/after-ecj/BuilderNestedJavadoc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
public @lombok.Builder class BuilderNestedJavadoc { | ||
public static @lombok.Builder class NestedClass { | ||
public static @java.lang.SuppressWarnings("all") @lombok.Generated class NestedClassBuilder { | ||
private @java.lang.SuppressWarnings("all") @lombok.Generated String name; | ||
@java.lang.SuppressWarnings("all") @lombok.Generated NestedClassBuilder() { | ||
super(); | ||
} | ||
/** | ||
* Example javadoc | ||
* @return {@code this}. | ||
*/ | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadoc.NestedClass.NestedClassBuilder name(final String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadoc.NestedClass build() { | ||
return new BuilderNestedJavadoc.NestedClass(this.name); | ||
} | ||
public @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() { | ||
return (("BuilderNestedJavadoc.NestedClass.NestedClassBuilder(name=" + this.name) + ")"); | ||
} | ||
} | ||
String name; | ||
@java.lang.SuppressWarnings("all") @lombok.Generated NestedClass(final String name) { | ||
super(); | ||
this.name = name; | ||
} | ||
public static @java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadoc.NestedClass.NestedClassBuilder builder() { | ||
return new BuilderNestedJavadoc.NestedClass.NestedClassBuilder(); | ||
} | ||
} | ||
public static @java.lang.SuppressWarnings("all") @lombok.Generated class BuilderNestedJavadocBuilder { | ||
@java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadocBuilder() { | ||
super(); | ||
} | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadoc build() { | ||
return new BuilderNestedJavadoc(); | ||
} | ||
public @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() { | ||
return "BuilderNestedJavadoc.BuilderNestedJavadocBuilder()"; | ||
} | ||
} | ||
@java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadoc() { | ||
super(); | ||
} | ||
public static @java.lang.SuppressWarnings("all") @lombok.Generated BuilderNestedJavadoc.BuilderNestedJavadocBuilder builder() { | ||
return new BuilderNestedJavadoc.BuilderNestedJavadocBuilder(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@lombok.Builder | ||
public class BuilderNestedJavadoc { | ||
@lombok.Builder | ||
public static class NestedClass { | ||
/** | ||
* Example javadoc | ||
*/ | ||
String name; | ||
} | ||
} |