Skip to content

Commit 5620c89

Browse files
committed
Remove generic 'copy' return types
1 parent 21bf7c5 commit 5620c89

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

labkey-client-api/src/org/labkey/remoteapi/Command.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ public void setRequiredVersion(double requiredVersion)
579579
* to copy their own data members
580580
* @return A copy of this object
581581
*/
582-
public Command<?> copy()
582+
public Command<ResponseType> copy()
583583
{
584584
return new Command<>(this);
585585
}

labkey-client-api/src/org/labkey/remoteapi/PostCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected HttpUriRequest createRequest(URI uri)
108108
}
109109

110110
@Override
111-
public PostCommand<?> copy()
111+
public PostCommand<ResponseType> copy()
112112
{
113113
return new PostCommand<>(this);
114114
}

labkey-client-api/src/org/labkey/remoteapi/security/CreateGroupCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected CreateGroupResponse createResponse(String text, int status, String con
5656
}
5757

5858
@Override
59-
public PostCommand<?> copy()
59+
public CreateGroupCommand copy()
6060
{
6161
return new CreateGroupCommand(this);
6262
}

labkey-client-api/src/org/labkey/remoteapi/security/CreateUserCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public JSONObject getJsonObject()
8383
}
8484

8585
@Override
86-
public PostCommand<?> copy()
86+
public CreateUserCommand copy()
8787
{
8888
return new CreateUserCommand(this);
8989
}

labkey-client-api/src/org/labkey/remoteapi/security/DeleteUserCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void setUserId(int userId)
5050
}
5151

5252
@Override
53-
public PostCommand<?> copy()
53+
public DeleteUserCommand copy()
5454
{
5555
return new DeleteUserCommand(this);
5656
}

labkey-client-api/src/org/labkey/remoteapi/security/RenameGroupCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public RenameGroupCommand(RenameGroupCommand source)
4141
}
4242

4343
@Override
44-
public PostCommand<?> copy()
44+
public RenameGroupCommand copy()
4545
{
4646
return new RenameGroupCommand(this);
4747
}

0 commit comments

Comments
 (0)