From b35271fb7c5b9cb0a07aeefca9e2e5b5d5bdaa8d Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 19 Jul 2019 13:48:02 +0100 Subject: [PATCH] JAL-3371 lastVal now String not Object --- src/jalview/gui/OptsAndParamsPage.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 1.7.10.2