Fix type equality mismatch ErrorProne error
Change-Id: I0e754311dc24a69ab8eb045136b3c86904fe77ad
This commit is contained in:
@@ -81,7 +81,7 @@ class DashboardsCollection implements
|
||||
@Override
|
||||
public RestModifyView<ProjectResource, ?> create(ProjectResource parent,
|
||||
IdString id) throws RestApiException {
|
||||
if (id.equals("default")) {
|
||||
if (id.toString().equals("default")) {
|
||||
return createDefault.get();
|
||||
}
|
||||
throw new ResourceNotFoundException(id);
|
||||
@@ -91,7 +91,7 @@ class DashboardsCollection implements
|
||||
public DashboardResource parse(ProjectResource parent, IdString id)
|
||||
throws ResourceNotFoundException, IOException, ConfigInvalidException {
|
||||
ProjectControl myCtl = parent.getControl();
|
||||
if (id.equals("default")) {
|
||||
if (id.toString().equals("default")) {
|
||||
return DashboardResource.projectDefault(myCtl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user