From: gmungoc Date: Fri, 19 Jul 2019 12:48:02 +0000 (+0100) Subject: JAL-3371 lastVal now String not Object X-Git-Tag: Release_2_11_1_1~22^2~7^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b35271fb7c5b9cb0a07aeefca9e2e5b5d5bdaa8d;p=jalview.git JAL-3371 lastVal now String not Object --- diff --git a/src/jalview/gui/OptsAndParamsPage.java b/src/jalview/gui/OptsAndParamsPage.java index 940ad14..0f4d0e7 100644 --- a/src/jalview/gui/OptsAndParamsPage.java +++ b/src/jalview/gui/OptsAndParamsPage.java @@ -288,7 +288,7 @@ public class OptsAndParamsPage boolean integ = false; - Object lastVal; + String lastVal; ParameterI parameter; @@ -479,9 +479,10 @@ public class OptsAndParamsPage * * @return */ - private Object getCurrentValue() + private String getCurrentValue() { - return choice ? choicebox.getSelectedItem() : valueField.getText(); + return choice ? (String) choicebox.getSelectedItem() + : valueField.getText(); } @Override