Sathish David Kumar N
asked on
What is mean by (Baseline) JAVA0049 Nested block at depth '6' (maximum: '5')
What is mean by (Baseline) JAVA0049 Nested block at depth '6' (maximum: '5') ?
How to resolve this ?
How to resolve this ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
how to avoid in depth code?
if i write seprated function then it will coming under exit right?
if i write seprated function then it will coming under exit right?
you break it into separate methods
ASKER
OK i will write 2 methos .
but while calling a method that will causing exit (my other question u answer like that ) right ?
but while calling a method that will causing exit (my other question u answer like that ) right ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It refers to the maximum nesting of blocks found in a method. Deeply nested blocks may make the code difficult to understand. Deeply nested blocks may be avoided by moving the code to separate method.
http://www.appperfect.com/support/docs/java-code-test/codetest/analyzing_results.html
Means your code has too many leveles of nesting
eg.
for (int i=0; i<5; i++) { // 1 level
if (c==x) { // 2levels
....