[
https://issues.apache.org/jira/browse/GEODE-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15289304#comment-15289304
]
ASF GitHub Bot commented on GEODE-1296:
---------------------------------------
Github user dschneider-pivotal commented on the pull request:
https://github.com/apache/incubator-geode/pull/145#issuecomment-220090005
I think this should be changed to use the java "assert" keyword. The
assertion should only be checked when assertions on the jvm are enabled.
> OffHeapStoredObject.getRawBytes should assert that it is not called on
> compressed data
> --------------------------------------------------------------------------------------
>
> Key: GEODE-1296
> URL: https://issues.apache.org/jira/browse/GEODE-1296
> Project: Geode
> Issue Type: Bug
> Components: offheap
> Reporter: Darrel Schneider
> Assignee: Kenneth Howe
>
> The current code does this:
> if (isCompressed()) {
> throw new UnsupportedOperationException();
> }
> It would be more clear if it just did this:
> assert !isCompressed();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)