Skip to content

Commit

Permalink
EPMRPP-89281 || Fix class cast issue using string (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik authored Jan 31, 2024
1 parent 5470355 commit 0ca27bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
SCRIPTS_VERSION: 5.11.0
BOM_VERSION: 5.11.1
MIGRATIONS_VERSION: 5.11.0
RELEASE_VERSION: 5.11.4
RELEASE_VERSION: 5.11.5

jobs:
release:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,14 @@ private HttpEntity<String> getStringHttpEntity(String body) {
return new HttpEntity<>(body, headers);
}

/**
* Returns long value through the string cast to avoid different types returned from text engine
*
* @param longVal Object from text engine response
* @return Long value
*/
private Long getLongValue(Object longVal) {
return Long.valueOf((String) longVal);
return Long.valueOf(String.valueOf(longVal));
}

}

0 comments on commit 0ca27bf

Please sign in to comment.