added missing since annotations

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
Christian Dietrich 2018-06-15 19:15:40 +02:00
parent 4023a25c84
commit 54ec08b19e
2 changed files with 16 additions and 5 deletions

View file

@ -100,5 +100,13 @@ import org.eclipse.lsp4j.Range
}
return new Document(if (version !== null) version + 1 else null, newContent)
}
/**
* @since 2.15
*/
@Pure
def boolean isPrintSourceOnError() {
printSourceOnError
}
}

View file

@ -138,6 +138,14 @@ public class Document {
return new Document(_xifexpression, newContent);
}
/**
* @since 2.15
*/
@Pure
public boolean isPrintSourceOnError() {
return this.printSourceOnError;
}
@Override
@Pure
public int hashCode() {
@ -192,9 +200,4 @@ public class Document {
public String getContents() {
return this.contents;
}
@Pure
public boolean isPrintSourceOnError() {
return this.printSourceOnError;
}
}