|
Java example source code file (TestCaseIf.java)
The TestCaseIf.java Java example source code/* /nodynamiccopyright/ */ public class TestCaseIf { @AliveRange(varName="o", bytecodeStart=9, bytecodeLength=5) @AliveRange(varName="o", bytecodeStart=17, bytecodeLength=1) void m0(String[] args) { Object o; if (args[0] != null) { o = ""; o.hashCode(); } o = ""; } @AliveRange(varName="o", bytecodeStart=10, bytecodeLength=5) @AliveRange(varName="o", bytecodeStart=18, bytecodeLength=1) void m1() { Object o; int i = 5; if (i == 5) { o = ""; o.hashCode(); } o = ""; } @AliveRange(varName="o", bytecodeStart=10, bytecodeLength=5) @AliveRange(varName="o", bytecodeStart=18, bytecodeLength=1) void m2() { Object o; int i = 5; if (!(i == 5)) { o = ""; o.hashCode(); } o = ""; } @AliveRange(varName="o", bytecodeStart=15, bytecodeLength=5) @AliveRange(varName="o", bytecodeStart=23, bytecodeLength=1) void m3(String[] args) { Object o; if (args[0] != null && args[1] != null) { o = ""; o.hashCode(); } o = ""; } @AliveRange(varName="o", bytecodeStart=15, bytecodeLength=5) @AliveRange(varName="o", bytecodeStart=23, bytecodeLength=1) void m4(String[] args) { Object o; if (args[0] != null || args[1] != null) { o = ""; o.hashCode(); } o = ""; } } Other Java examples (source code examples)Here is a short list of links related to this Java TestCaseIf.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.