-
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #3727 from Rawi01/eclipse-javadoc-bounds
Improve extraction of javadoc comments
- Loading branch information
Showing
5 changed files
with
175 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
public class WeirdJavadoc { | ||
// Comment | ||
/* Weird comment /** */ | ||
/* Weird comment /** */ | ||
/** | ||
* This is the real comment | ||
* @param test Copy this | ||
*/ | ||
WeirdJavadoc(String test) { | ||
} | ||
// Comment | ||
/* Weird comment /** */ | ||
/* Weird comment /** */ | ||
/** | ||
* This is the real comment | ||
*/ | ||
private String test; | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public static class WeirdJavadocBuilder { | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
private String test; | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
WeirdJavadocBuilder() { | ||
} | ||
/** | ||
* @param test Copy this | ||
* @return {@code this}. | ||
*/ | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public WeirdJavadoc.WeirdJavadocBuilder test(final String test) { | ||
this.test = test; | ||
return this; | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public WeirdJavadoc build() { | ||
return new WeirdJavadoc(this.test); | ||
} | ||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public java.lang.String toString() { | ||
return "WeirdJavadoc.WeirdJavadocBuilder(test=" + this.test + ")"; | ||
} | ||
} | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public static WeirdJavadoc.WeirdJavadocBuilder builder() { | ||
return new WeirdJavadoc.WeirdJavadocBuilder(); | ||
} | ||
/** | ||
* This is the real comment | ||
*/ | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public String getTest() { | ||
return this.test; | ||
} | ||
/** | ||
* This is the real comment | ||
* @param test Copy this | ||
*/ | ||
@java.lang.SuppressWarnings("all") | ||
@lombok.Generated | ||
public void setTest(final String test) { | ||
this.test = test; | ||
} | ||
} |
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,45 @@ | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
public class WeirdJavadoc { | ||
public static @java.lang.SuppressWarnings("all") @lombok.Generated class WeirdJavadocBuilder { | ||
private @java.lang.SuppressWarnings("all") @lombok.Generated String test; | ||
@java.lang.SuppressWarnings("all") @lombok.Generated WeirdJavadocBuilder() { | ||
super(); | ||
} | ||
/** | ||
* @param test Copy this | ||
* @return {@code this}. | ||
*/ | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated WeirdJavadoc.WeirdJavadocBuilder test(final String test) { | ||
this.test = test; | ||
return this; | ||
} | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated WeirdJavadoc build() { | ||
return new WeirdJavadoc(this.test); | ||
} | ||
public @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() { | ||
return (("WeirdJavadoc.WeirdJavadocBuilder(test=" + this.test) + ")"); | ||
} | ||
} | ||
private @Getter @Setter String test; | ||
@Builder WeirdJavadoc(String test) { | ||
super(); | ||
} | ||
public static @java.lang.SuppressWarnings("all") @lombok.Generated WeirdJavadoc.WeirdJavadocBuilder builder() { | ||
return new WeirdJavadoc.WeirdJavadocBuilder(); | ||
} | ||
/** | ||
* This is the real comment | ||
*/ | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated String getTest() { | ||
return this.test; | ||
} | ||
/** | ||
* This is the real comment | ||
* @param test Copy this | ||
*/ | ||
public @java.lang.SuppressWarnings("all") @lombok.Generated void setTest(final String test) { | ||
this.test = test; | ||
} | ||
} |
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 @@ | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
public class WeirdJavadoc { | ||
// Comment | ||
/* Weird comment /** */ | ||
/** | ||
* This is the real comment | ||
* @param test Copy this | ||
*/ | ||
/* Weird comment /** */ | ||
@Builder | ||
WeirdJavadoc(String test) { | ||
|
||
} | ||
|
||
// Comment | ||
/* Weird comment /** */ | ||
/** | ||
* This is the real comment | ||
* @param test Copy this | ||
*/ | ||
/* Weird comment /** */ | ||
@Getter | ||
@Setter | ||
private String test; | ||
} |