#58: Allow comments / blank lines in InheritanceMap

This commit is contained in:
QartemisT 2020-05-05 00:27:46 +01:00 committed by GitHub
parent de150d74a2
commit a3230c15a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,13 @@ public class InheritanceMap implements InheritanceProvider {
String line;
while ((line = reader.readLine()) != null) {
int commentIndex = line.indexOf('#')
if (commentIndex != -1) {
line = line.substring(0, commentIndex)
}
if (line.isEmpty()) {
continue;
}
String[] tokens = line.split(" ");
if (tokens.length < 2) {