mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 06:13:13 +02:00
Apply javafmt in sbt project
This commit is contained in:
@@ -10,9 +10,13 @@ package xsbti;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public interface Logger {
|
||||
void error(Supplier<String> msg);
|
||||
void warn(Supplier<String> msg);
|
||||
void info(Supplier<String> msg);
|
||||
void debug(Supplier<String> msg);
|
||||
void trace(Supplier<Throwable> exception);
|
||||
void error(Supplier<String> msg);
|
||||
|
||||
void warn(Supplier<String> msg);
|
||||
|
||||
void info(Supplier<String> msg);
|
||||
|
||||
void debug(Supplier<String> msg);
|
||||
|
||||
void trace(Supplier<Throwable> exception);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,18 +9,21 @@ package xsbti;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public interface Problem
|
||||
{
|
||||
String category();
|
||||
Severity severity();
|
||||
String message();
|
||||
Position position();
|
||||
public interface Problem {
|
||||
String category();
|
||||
|
||||
Severity severity();
|
||||
|
||||
String message();
|
||||
|
||||
Position position();
|
||||
|
||||
// Default value to avoid breaking binary compatibility
|
||||
/**
|
||||
* If present, the string shown to the user when displaying this Problem.
|
||||
* Otherwise, the Problem will be shown in an implementation-defined way
|
||||
* based on the values of its other fields.
|
||||
* If present, the string shown to the user when displaying this Problem. Otherwise, the Problem
|
||||
* will be shown in an implementation-defined way based on the values of its other fields.
|
||||
*/
|
||||
default Optional<String> rendered() { return Optional.empty(); }
|
||||
default Optional<String> rendered() {
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
|
||||
package xsbti;
|
||||
|
||||
public enum Severity
|
||||
{
|
||||
Info, Warn, Error
|
||||
}
|
||||
public enum Severity {
|
||||
Info,
|
||||
Warn,
|
||||
Error
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
package xsbti;
|
||||
|
||||
/** Used to pass a pair of values. */
|
||||
public interface T2<A1, A2>
|
||||
{
|
||||
public interface T2<A1, A2> {
|
||||
public A1 get1();
|
||||
|
||||
public A2 get2();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user