Remove unnecessary cast

getContext() returns short so casting to short is not necessary.

Change-Id: Ibd0c0878a0df2a5f619b2cc428f128093894acad
This commit is contained in:
Shawn Pearce
2013-05-20 21:42:22 -07:00
parent 99ca234e1c
commit 4d850cd2e9

View File

@@ -314,7 +314,7 @@ public class PatchScriptSettingsPanel extends Composite {
if (0 <= sel) {
return Short.parseShort(context.getValue(sel));
}
return (short) getValue().getContext();
return getValue().getContext();
}
private void setContext(int ctx) {