You can change compiler settings to not fail on those restrictions in workspace settings in Window \/ Preferences \/ Java \/ Compiler \/ Errors/Warnings \/ Deprecated and restricted API \/ Forbidden reference (access rules) \/ Warnings; or per-project from Project \/ Properties \/ Java Compiler \/ Errors\/Warnings \/ Deprecated and restricted API \/ Forbidden reference (access rules) \/ Warnings
转载于:https://my.oschina.net/jingshishengxu/blog/13524