* SourceCode.toString() now states both, java class and .origin

This commit is contained in:
meisl 2021-06-21 20:07:24 +02:00
parent d3e026d82a
commit 4096aae8d4

View File

@ -29,13 +29,9 @@ abstract class SourceCode() {
/** /**
* Deliberately does NOT return the actual text. * Deliberately does NOT return the actual text.
* Use [getCharStream]. * For this - if at all - use [getCharStream].
*/ */
final override fun toString() = super.toString() final override fun toString() = "${this.javaClass.name}[${this.origin}]"
// "static" factory methods // "static" factory methods
companion object { companion object {