Closed gdelhumeau closed 9 years ago
This commit actually assumes that we use Java 7. But it could easily be changed to support prior versions of java by using String or File instead of java.nio.file.Path
.
@gdelhumeau Thank you, this helps. Less4j is compiled in 1.6 so I will change it to File.
I am also thinking about splitting it into two classes: MultiPathFileSource and MultiPathStringSource (or something of the sort) - so that I can add charset for file read and name for string without single class having too many constructors. Would that be a problem for something?
No, it has the benefit of being more clear, indeed.
Pull request for: https://github.com/SomMeri/less4j/issues/287