Fix type equality mismatch ErrorProne error

Change-Id: I0e754311dc24a69ab8eb045136b3c86904fe77ad
This commit is contained in:
Andrew Bonventre
2016-06-02 17:45:12 -04:00
parent adaebd25a9
commit 16060879ff

View File

@@ -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);
}