Commit f8afa393 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Recognize bandwidth files with @type annotation.

Fixes part of #30525.
parent 3693e107
# Changes in version 2.6.2 - 2019-05-??
* Medium changes
- Recognize bandwidth files with @type annotation.
# Changes in version 2.6.1 - 2019-05-03
* Medium changes
......
......@@ -132,7 +132,8 @@ public class DescriptorParserImpl implements DescriptorParser {
sourceFile);
} else if (fileName.contains(LogDescriptorImpl.MARKER)) {
return LogDescriptorImpl.parse(rawDescriptorBytes, sourceFile, fileName);
} else if (firstLines.matches("(?s)[0-9]{10}\\n.*")) {
} else if (firstLines.startsWith("@type bandwidth-file 1.")
|| firstLines.matches("(?s)[0-9]{10}\\n.*")) {
/* Identifying bandwidth files by a 10-digit timestamp in the first line
* breaks with files generated before 2002 or after 2286 and when the next
* descriptor identifier starts with just a timestamp in the first line
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment