Skip to content

Commit

Permalink
Fix isIsBounded for sequences (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Ponz <[email protected]>
  • Loading branch information
EduPonz authored Feb 22, 2023
1 parent 6866e97 commit 509cfa3
Showing 1 changed file with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,29 +132,20 @@ public boolean isIsPlain()
public boolean isIsBounded()
{
boolean ret_value = false;
boolean should_set_and_unset = getContentTypeCode().isForwarded() && !detect_recursive_;

if (should_set_and_unset)
if (m_maxsize != null)
{
detect_recursive_ = true;

if (m_maxsize == null)
boolean should_set_and_unset = getContentTypeCode().isForwarded() && !detect_recursive_;
if (should_set_and_unset)
{
ret_value = false;
detect_recursive_ = true;
ret_value = super.isIsBounded();
detect_recursive_ = false;
}
else
{
ret_value = super.isIsBounded();
}

detect_recursive_ = false;
}
else
{
if (m_maxsize == null)
{
ret_value = false;
}
}

return ret_value;
Expand Down

0 comments on commit 509cfa3

Please sign in to comment.