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 524-532
Link Here
|
524 |
if ((this.tagBits & FlowContext.HIDE_NULL_COMPARISON_WARNING) == 0) { |
524 |
if ((this.tagBits & FlowContext.HIDE_NULL_COMPARISON_WARNING) == 0) { |
525 |
recordNullReference(local, reference, checkType); |
525 |
recordNullReference(local, reference, checkType); |
526 |
} |
526 |
} |
527 |
} else if (! flowInfo.cannotBeDefinitelyNullOrNonNull(local)) { |
527 |
} else if (flowInfo.cannotBeDefinitelyNullOrNonNull(local)) { |
|
|
528 |
return; // no reason to complain |
529 |
} else { |
528 |
if (flowInfo.isPotentiallyNonNull(local)) { |
530 |
if (flowInfo.isPotentiallyNonNull(local)) { |
529 |
recordNullReference(local, reference, CAN_ONLY_NON_NULL | checkType & CONTEXT_MASK); |
531 |
recordNullReference(local, reference, CAN_ONLY_NON_NULL | checkType & CONTEXT_MASK); |
|
|
532 |
} else if (flowInfo.isPotentiallyNull(local)) { |
533 |
recordNullReference(local, reference, CAN_ONLY_NULL | checkType & CONTEXT_MASK); |
530 |
} else { |
534 |
} else { |
531 |
if ((this.tagBits & FlowContext.HIDE_NULL_COMPARISON_WARNING) == 0) { |
535 |
if ((this.tagBits & FlowContext.HIDE_NULL_COMPARISON_WARNING) == 0) { |
532 |
recordNullReference(local, reference, checkType); |
536 |
recordNullReference(local, reference, checkType); |