mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 16:54:29 +02:00
Apply javafmt in sbt project
This commit is contained in:
@@ -10,24 +10,44 @@ package xsbti;
|
||||
import java.io.File;
|
||||
import java.util.Optional;
|
||||
|
||||
public interface Position
|
||||
{
|
||||
Optional<Integer> line();
|
||||
String lineContent();
|
||||
Optional<Integer> offset();
|
||||
public interface Position {
|
||||
Optional<Integer> line();
|
||||
|
||||
// pointer to the column position of the error/warning
|
||||
Optional<Integer> pointer();
|
||||
Optional<String> pointerSpace();
|
||||
String lineContent();
|
||||
|
||||
Optional<String> sourcePath();
|
||||
Optional<File> sourceFile();
|
||||
Optional<Integer> offset();
|
||||
|
||||
// Default values to avoid breaking binary compatibility
|
||||
default Optional<Integer> startOffset() { return Optional.empty(); }
|
||||
default Optional<Integer> endOffset() { return Optional.empty(); }
|
||||
default Optional<Integer> startLine() { return Optional.empty(); }
|
||||
default Optional<Integer> startColumn() { return Optional.empty(); }
|
||||
default Optional<Integer> endLine() { return Optional.empty(); }
|
||||
default Optional<Integer> endColumn() { return Optional.empty(); }
|
||||
// pointer to the column position of the error/warning
|
||||
Optional<Integer> pointer();
|
||||
|
||||
Optional<String> pointerSpace();
|
||||
|
||||
Optional<String> sourcePath();
|
||||
|
||||
Optional<File> sourceFile();
|
||||
|
||||
// Default values to avoid breaking binary compatibility
|
||||
default Optional<Integer> startOffset() {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
default Optional<Integer> endOffset() {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
default Optional<Integer> startLine() {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
default Optional<Integer> startColumn() {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
default Optional<Integer> endLine() {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
default Optional<Integer> endColumn() {
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user