2019-12-08 02:14:42 +01:00
|
|
|
/*
|
|
|
|
|
* sbt
|
|
|
|
|
* Copyright 2011 - 2018, Lightbend, Inc.
|
|
|
|
|
* Copyright 2008 - 2010, Mark Harrah
|
|
|
|
|
* Licensed under Apache License 2.0 (see LICENSE)
|
2010-10-23 22:34:22 +02:00
|
|
|
*/
|
2019-12-08 02:14:42 +01:00
|
|
|
|
2010-10-23 22:34:22 +02:00
|
|
|
package xsbti;
|
|
|
|
|
|
2018-08-27 19:03:47 +02:00
|
|
|
import java.util.Optional;
|
|
|
|
|
|
2020-01-14 23:19:42 +01:00
|
|
|
public interface Problem {
|
|
|
|
|
String category();
|
|
|
|
|
|
|
|
|
|
Severity severity();
|
|
|
|
|
|
|
|
|
|
String message();
|
|
|
|
|
|
|
|
|
|
Position position();
|
2018-08-27 19:03:47 +02:00
|
|
|
|
|
|
|
|
// Default value to avoid breaking binary compatibility
|
|
|
|
|
/**
|
2020-01-14 23:19:42 +01:00
|
|
|
* 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.
|
2018-08-27 19:03:47 +02:00
|
|
|
*/
|
2020-01-14 23:19:42 +01:00
|
|
|
default Optional<String> rendered() {
|
|
|
|
|
return Optional.empty();
|
|
|
|
|
}
|
2018-08-27 19:03:47 +02:00
|
|
|
}
|