Remove unnecessary cast
getContext() returns short so casting to short is not necessary. Change-Id: Ibd0c0878a0df2a5f619b2cc428f128093894acad
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user