Merge remote-tracking branch 'upstream/master' into master

am: 9e75985c0d

Change-Id: I44211fd3048da1b65af591654cfe87fdeebb322c
This commit is contained in:
Jaewoong Jung 2019-03-08 16:06:46 -08:00 committed by android-build-merger
commit 428ebae61a

View file

@ -35,8 +35,7 @@ func CopyProperties(dstValue, srcValue reflect.Value) {
for i, field := range typeFields(typ) {
if field.PkgPath != "" {
// The field is not exported so just skip it.
continue
panic(fmt.Errorf("can't copy a private field %q", field.Name))
}
srcFieldValue := srcValue.Field(i)