Skip to content

Commit

Permalink
Don't throw IllegalStateException for unusual class declarations.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=138880645
  • Loading branch information
brad4d authored and blickly committed Nov 12, 2016
1 parent 11ad8bd commit 30cc43e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ private boolean isKnownToReturnOnlyUndefined(String functionQName) {
} else if (declaredValue.isQualifiedName()) {
return isKnownToReturnOnlyUndefined(declaredValue.getQualifiedName());
} else {
throw new IllegalStateException("Unexpected value: " + declaredValue.toStringTree());
// TODO(bradfordcsmith): What cases are these? Can we do better?
return false;
}
}

Expand Down

0 comments on commit 30cc43e

Please sign in to comment.