diff options
| author | Tobias Thierer <tobiast@google.com> | 2019-07-23 17:30:47 +0100 |
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2019-07-24 18:48:12 +0100 |
| commit | 59f8d0808588530c949363295f9fff11618b3303 (patch) | |
| tree | e8b720e448fa6e707167feb62cf7da3e6edf10cc /annotations/generate_annotated_java_files.py | |
| parent | 945082140f394fb52495582894f38593bdcf23a3 (diff) | |
OjluniRepository.loadRelPathsFromBlueprint(): de-duplicate paths.
Currently, five paths are listed more than once in that file (bug 138207002).
This CL changes the above method to silently discard any duplicates.
Previously, the CompareUpstreams tool would have processed such
duplicate files more than once, and would have produced duplicate
output; after this CL, they are processed (and produce output) only
once.
I considered throwing an exception instead in the case of duplicates,
but figured that it wasn't this code's responsibility to enforce
this.
Bug: 138207002
Test: Manually checked that the output of CompareUpstreams no longer
contains duplicate lines.
Change-Id: I36e8ef141ddd3029c57a83e912f5e8181e2e3bf4
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
