#58: Allow comments / blank lines in InheritanceMap
This commit is contained in:
parent
de150d74a2
commit
a3230c15a6
@ -87,6 +87,13 @@ public class InheritanceMap implements InheritanceProvider {
|
|||||||
String line;
|
String line;
|
||||||
|
|
||||||
while ((line = reader.readLine()) != null) {
|
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(" ");
|
String[] tokens = line.split(" ");
|
||||||
|
|
||||||
if (tokens.length < 2) {
|
if (tokens.length < 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user