Skip to content

Commit b31a92f

Browse files
committed
#1807: Add @SuppressWarnings annotations to constructors.
1 parent 35a4a6b commit b31a92f

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

src/main/java/com/jcabi/github/Repos.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public RepoCreate(final String nme, final boolean prvt) {
153153
* authenticated user.
154154
* @checkstyle ParameterNumberCheck (7 lines)
155155
*/
156+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
156157
private RepoCreate(
157158
final String nme,
158159
final boolean prvt,

src/main/java/com/jcabi/github/RtIssue.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ final class RtIssue implements Issue {
5959
* @param repo Repository
6060
* @param number Number of the get
6161
*/
62+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
6263
RtIssue(final Request req, final Repo repo, final int number) {
6364
this.entry = req;
6465
final Coordinates coords = repo.coordinates();

src/main/java/com/jcabi/github/RtPull.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ final class RtPull implements Pull {
5555
* @param repo Repository
5656
* @param number Number of the get
5757
*/
58+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
5859
RtPull(final Request req, final Repo repo, final int number) {
5960
this.entry = req;
6061
final Coordinates coords = repo.coordinates();

src/main/java/com/jcabi/github/RtUser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ final class RtUser implements User {
6262
* @param req Request
6363
* @param login User identity/identity
6464
*/
65+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
6566
RtUser(
6667
final GitHub github,
6768
final Request req,

src/main/java/com/jcabi/github/mock/MkContents.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ final class MkContents implements Contents {
5555
* @param rep Repo
5656
* @throws IOException If there is any I/O problem
5757
*/
58+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
5859
MkContents(
5960
final MkStorage stg,
6061
final String login,

src/main/java/com/jcabi/github/mock/MkIssues.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ final class MkIssues implements Issues {
5959
* @param rep Repo
6060
* @throws IOException If there is any I/O problem
6161
*/
62+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
6263
MkIssues(
6364
final MkStorage stg,
6465
final String login,

src/main/java/com/jcabi/github/mock/MkTrees.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ final class MkTrees implements Trees {
5050
* @param rep Repo's coordinates.
5151
* @throws IOException If something goes wrong.
5252
*/
53+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
5354
MkTrees(
5455
final MkStorage stg,
5556
final String login,

src/main/java/com/jcabi/github/mock/MkUserOrganizations.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ final class MkUserOrganizations implements UserOrganizations {
4646
* @param login User to login
4747
* @throws IOException If there is any I/O problem
4848
*/
49+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
4950
MkUserOrganizations(
5051
final MkStorage stg,
5152
final String login

0 commit comments

Comments
 (0)