|
@@ -251,17 +251,6 @@ namespace Google.Protobuf.Reflection
|
|
"Dependencies passed to FileDescriptor.BuildFrom() don't match " +
|
|
"Dependencies passed to FileDescriptor.BuildFrom() don't match " +
|
|
"those listed in the FileDescriptorProto.");
|
|
"those listed in the FileDescriptorProto.");
|
|
}
|
|
}
|
|
- for (int i = 0; i < proto.Dependency.Count; i++)
|
|
|
|
- {
|
|
|
|
- if (dependencies[i].Name != proto.Dependency[i])
|
|
|
|
- {
|
|
|
|
- throw new DescriptorValidationException(
|
|
|
|
- result,
|
|
|
|
- "Dependencies passed to FileDescriptor.BuildFrom() don't match " +
|
|
|
|
- "those listed in the FileDescriptorProto. Expected: " +
|
|
|
|
- proto.Dependency[i] + " but was: " + dependencies[i].Name);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
result.CrossLink();
|
|
result.CrossLink();
|
|
return result;
|
|
return result;
|
|
@@ -341,4 +330,4 @@ namespace Google.Protobuf.Reflection
|
|
/// </value>
|
|
/// </value>
|
|
public static FileDescriptor DescriptorProtoFileDescriptor { get { return DescriptorReflection.Descriptor; } }
|
|
public static FileDescriptor DescriptorProtoFileDescriptor { get { return DescriptorReflection.Descriptor; } }
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|