Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (processor is LazySchemeProcessor && processor.isDoNotWriteIfOnlyLineSeparatorChanged && file.exists()) {
- val detectedLineSeparator = file.detectedLineSeparator
- // scheme always uses LF
- if (detectedLineSeparator != LineSeparator.LF.separatorString) {
- val oldData = file.contentsToByteArray()
- if (detectLineSeparators(Charsets.UTF_8.decode(ByteBuffer.wrap(oldData))) != LineSeparator.LF) {
- }
- }
- }
- // easy migration if not possible to implement getSchemeState fully correctly
- open val isDoNotWriteIfOnlyLineSeparatorChanged: Boolean
- get() = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement