mirror of
https://github.com/plexusorg/toml4j.git
synced 2024-12-29 11:42:15 +00:00
Removed unused variable and added static imports.
This commit is contained in:
parent
fcd77dca6b
commit
1f290c94b8
1 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
|||
package com.moandjiezana.toml;
|
||||
|
||||
import java.util.List;
|
||||
import static com.moandjiezana.toml.ValueConverterUtils.parse;
|
||||
import static com.moandjiezana.toml.ValueConverterUtils.parser;
|
||||
|
||||
import org.parboiled.Parboiled;
|
||||
import java.util.List;
|
||||
|
||||
class LiteralStringConverter implements ValueConverter {
|
||||
|
||||
|
@ -15,8 +16,7 @@ class LiteralStringConverter implements ValueConverter {
|
|||
|
||||
@Override
|
||||
public Object convert(String s) {
|
||||
ValueParser parser = Parboiled.createParser(ValueParser.class);
|
||||
List<String> resultValue = ValueConverterUtils.parse(ValueConverterUtils.parser().LiteralString(), s);
|
||||
List<String> resultValue = parse(parser().LiteralString(), s);
|
||||
|
||||
if (resultValue == null) {
|
||||
return ValueConverterUtils.INVALID;
|
||||
|
|
Loading…
Reference in a new issue