Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 86-92
Link Here
|
86 |
CompilerOptions compilerOptions = currentScope.compilerOptions(); |
86 |
CompilerOptions compilerOptions = currentScope.compilerOptions(); |
87 |
if (!compilerOptions.includeNullInfoFromAsserts) { |
87 |
if (!compilerOptions.includeNullInfoFromAsserts) { |
88 |
// keep just the initializations info, don't include assert's null info |
88 |
// keep just the initializations info, don't include assert's null info |
89 |
return flowInfo.mergedWith(assertInfo.nullInfoLessUnconditionalCopy()); |
89 |
// merge initialization info's and then add back the null info from flowInfo to |
|
|
90 |
// make sure that the empty null info of assertInfo doesnt change flowInfo's null info. |
91 |
return ((flowInfo.nullInfoLessUnconditionalCopy()).mergedWith(assertInfo.nullInfoLessUnconditionalCopy())).addNullInfoFrom(flowInfo); |
90 |
} |
92 |
} |
91 |
return flowInfo.mergedWith(assertInfo.nullInfoLessUnconditionalCopy()). |
93 |
return flowInfo.mergedWith(assertInfo.nullInfoLessUnconditionalCopy()). |
92 |
addInitializationsFrom(assertWhenTrueInfo.discardInitializationInfo()); |
94 |
addInitializationsFrom(assertWhenTrueInfo.discardInitializationInfo()); |