Skip to content

Commit

Permalink
Add android.arch to valid RestrictTo users
Browse files Browse the repository at this point in the history
RELNOTES: n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177350668
  • Loading branch information
clm authored and ronshapiro committed Dec 1, 2017
1 parent 88aa0bd commit e189e4b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -242,7 +242,9 @@ private static boolean symbolInSupportLibrary(Symbol sym) {

private static boolean compilingSupportLibrary(VisitorState state) {
ExpressionTree tree = state.getPath().getCompilationUnit().getPackageName();
return tree != null && tree.toString().startsWith("android.support");
return tree != null
&& (tree.toString().startsWith("android.support")
|| tree.toString().startsWith("android.arch"));
}

private static boolean checkEnclosingTypes(Type type, VisitorState state) {
Expand Down

0 comments on commit e189e4b

Please sign in to comment.