forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixes projectlombok#933] Add javadoc for generated constructors
- Loading branch information
Showing
11 changed files
with
175 additions
and
5 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
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
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
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
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
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
28 changes: 28 additions & 0 deletions
28
test/transform/resource/after-delombok/ConstructorJavadoc.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,28 @@ | ||
public class ConstructorJavadoc { | ||
/** | ||
* Some text | ||
* | ||
* @param fieldName Hello, World1 | ||
* --- GETTER --- | ||
* Getter section | ||
* | ||
* @return Sky is blue1 | ||
*/ | ||
private int fieldName; | ||
/** | ||
* Sky is blue | ||
*/ | ||
private int fieldName2; | ||
/** | ||
* Creates a new {@code ConstructorJavadoc} instance. | ||
* | ||
* @param fieldName Some text | ||
* @param fieldName2 Sky is blue | ||
*/ | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public ConstructorJavadoc(final int fieldName, final int fieldName2) { | ||
this.fieldName = fieldName; | ||
this.fieldName2 = fieldName2; | ||
} | ||
} |
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
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
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,16 @@ | ||
import lombok.AllArgsConstructor; | ||
public @AllArgsConstructor class ConstructorJavadoc { | ||
private int fieldName; | ||
private int fieldName2; | ||
/** | ||
* Creates a new {@code ConstructorJavadoc} instance. | ||
* | ||
* @param fieldName Some text | ||
* @param fieldName2 Sky is blue | ||
*/ | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated ConstructorJavadoc(final int fieldName, final int fieldName2) { | ||
super(); | ||
this.fieldName = fieldName; | ||
this.fieldName2 = fieldName2; | ||
} | ||
} |
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,20 @@ | ||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class ConstructorJavadoc { | ||
/** | ||
* Some text | ||
* | ||
* @param fieldName Hello, World1 | ||
* --- GETTER --- | ||
* Getter section | ||
* | ||
* @return Sky is blue1 | ||
*/ | ||
private int fieldName; | ||
|
||
/** | ||
* Sky is blue | ||
*/ | ||
private int fieldName2; | ||
} |