Fix deprecated constructor warning in PatchSetIdHandler
Apparently we are supposed to pass the CmdLineParser instance into the CmdLineException class. Change-Id: I4f9d5561c6c337ca23445f906556314f5eb9df01 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -37,7 +37,7 @@ public class PatchSetIdHandler extends OptionHandler<PatchSet.Id> {
|
||||
try {
|
||||
id = PatchSet.Id.parse(idString);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new CmdLineException("Invalid patch set: " + idString);
|
||||
throw new CmdLineException(owner, "Invalid patch set: " + idString);
|
||||
}
|
||||
|
||||
setter.addValue(id);
|
||||
|
||||
Reference in New Issue
Block a user