...
Code Block | ||
---|---|---|
| ||
private Object myState = null; // Sets some internal state in the library void setfilesetState(Object state) { myState = state; } // Performs some action using the file passed earlier void useState() { // Perform some action here } |
...
Code Block | ||
---|---|---|
| ||
private Object myState = null; // Sets some internal state in the library void setfilesetState(Object state) { if (state == null) { // Handle null state } // Defensive copy here when state is mutable if (isInvalidState(state)) { // Handle invalid state } myState = state; } // Performs some action using the state passed earlier void useState() { if (myState == null) { // Handle no state (e.g. null) condition } // ... } |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7c9a5561675c5cb7-3b72ef67-4531427e-b1cea648-5364509808fbf67e1f06ea4a"><ac:plain-text-body><![CDATA[ | [ISO/IEC TR 24772:2010 | http://www.aitcnet.org/isai/] | "Argument Passing to Library Functions [TRJ]" | ]]></ac:plain-text-body></ac:structured-macro> |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="426a378ff434de1a-ab89847b-42924877-8831800b-7667ba20ebbf130eb3abf3c7"><ac:plain-text-body><![CDATA[ | [[Bloch 2008 | AA. Bibliography#Bloch 08]] | Item 38: Check parameters for validity | ]]></ac:plain-text-body></ac:structured-macro> |
...