Fix logic issue in RestParameter

Warnings about raw types are disabled by default in IDEA but are enabled in eclipse