DescriptionFixes a bad assertion error in the PreconditionsNotNullPrimitive bug checker. ASTHelpers.getRootIdentifier() is documented as returning null in several legitimate cases, so it shouldn't be treated as a fatal error when it happens.
Additionally, this patch adds some unit tests for ASTHelpers.getRootIdentifier() based on the javadoc examples, and fixes the implementation to pass.
Patch Set 1 #Patch Set 2 : Cleanup unnecessary changes and diff against correct revision #
Total comments: 4
Patch Set 3 : Generalize to support more cases #Patch Set 4 : Wrap long lines #
Total comments: 3
Patch Set 5 : Move check out of ASTHelpers #
MessagesTotal messages: 9
|