Java isBlank fixes

Tried to run in Java 8 and got this error:
 
19:44:26.532 [qtp1365163763-221] ERROR c.s.w.servlet.HttpJSONServlet - java.lang.String.isBlank()Z
java.lang.NoSuchMethodError: java.lang.String.isBlank()Z
at com.strategyquant.datalib.timezone.Timezone.print(Unknown Source) ~[_SQx0129.jar:na]
at com.strategyquant.tradinglib.project.websocket.WSDataObjects.getData(Unknown Source) ~[_SQx0129.jar:na]
at com.strategyquant.plugin.Servlet.impl.Constants.ConstantsServlet.onGetAll(Unknown Source) ~[_SQx0129.jar:na]
at com.strategyquant.plugin.Servlet.impl.Constants.ConstantsServlet.execute(Unknown Source) ~[_SQx0129.jar:na]
at com.strategyquant.webguilib.servlet.HttpJSONServlet.doGet(Unknown Source) [_SQx0129.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [jetty-all-uber.jar:9.4.19.v20190610]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jetty-all-uber.jar:9.4.19.v20190610]


As per https://www.baeldung.com/java-blank-empty-strings it is possible to use Apache Commons StringUtils.isBlank(string) for the same thing. Can you make it Java 8 compatible please?

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

TT
#1

Tamas

28.09.2020 14:04

Status changed from New to Refused

No, current version of SQX is builded for java 11 and newer Java versions

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please