Skip to content

Commit bf244cc

Browse files
committed
可扩展性修改,以便子类可设置不同的“OPERATORS”
so the subclass change operators to "="( src : ":=") and change service class in META-INF\services\org.ini4j.spi.IniParser
1 parent be83ed4 commit bf244cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/ini4j/spi/IniParser.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ public class IniParser extends AbstractParser
3535

3636
public IniParser()
3737
{
38-
super(OPERATORS, COMMENTS);
38+
this(OPERATORS, COMMENTS);
39+
}
40+
41+
protected IniParser(String operators, String comments) {
42+
super(operators, comments);
3943
}
4044

4145
public static IniParser newInstance()

0 commit comments

Comments
 (0)