Skip to content
Snippets Groups Projects
Commit fe5ff255 authored by gmantele's avatar gmantele
Browse files

[TAP] Fix wrong type cast: cast an Integer object into a long value is not possible.

parent 0d89d7c8
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ public class TAPExecutionDurationController implements InputParamController { ...@@ -114,7 +114,7 @@ public class TAPExecutionDurationController implements InputParamController {
if (value instanceof Long) if (value instanceof Long)
duration = (Long)value; duration = (Long)value;
else if (value instanceof Integer) else if (value instanceof Integer)
duration = (long)(Integer)value; duration = (long)((Integer)value).intValue();
else if (value instanceof String){ else if (value instanceof String){
try{ try{
duration = Long.parseLong((String)value); duration = Long.parseLong((String)value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment