Suppress "unlikely argument type" warnings for IdString

These are fixed on master, but will not be fixed on the
stable branch. Suppress them just to get rid of them in
Eclipse.

This commit should be omitted when merging the branch
up to master.

Change-Id: Iae6e69e14c1fd346a9ea29779875bb00e43fdc8c
This commit is contained in:
David Pursehouse 2017-09-21 16:30:30 +09:00
parent 9d36da079b
commit 89ab8f4587
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class Revisions implements ChildCollection<ChangeResource, RevisionResour
throw new ResourceNotFoundException();
}
@SuppressWarnings("unlikely-arg-type")
@Override
public RevisionResource parse(ChangeResource change, IdString id)
throws ResourceNotFoundException, AuthException, OrmException, IOException {

View File

@ -42,6 +42,7 @@ public class ConfigCollection implements RestCollection<TopLevelResource, Config
return views;
}
@SuppressWarnings("unlikely-arg-type")
@Override
public ConfigResource parse(TopLevelResource root, IdString id) throws ResourceNotFoundException {
if (id.equals("server")) {