bndtools/bnd — pull request #218 by djencks (2012-07-21 03:55:15+00:00)
Title: Uses clause tests and improvements

This includes tests for all the uses clause cases I can think of, based on discussions for https://github.com/bndtools/bnd/issues/36.

Peter did a good job on most of these cases except for exceptions and annotations. There are 2 commits to fix these cases.

The code ends up calculating

if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags))) {

in quite a few places. It might be worth precalculating this and using the value instead of access_flags. Since doing this is pretty obvious and Peter didn't choose to do it I didn't try to change it.