2010-10-23 22:34:22 +02:00
|
|
|
/* sbt -- Simple Build Tool
|
|
|
|
|
* Copyright 2008, 2009, 2010 Mark Harrah
|
|
|
|
|
*/
|
|
|
|
|
package xsbti;
|
|
|
|
|
|
2018-08-27 19:03:47 +02:00
|
|
|
import java.util.Optional;
|
|
|
|
|
|
2010-10-23 22:34:22 +02:00
|
|
|
public interface Problem
|
|
|
|
|
{
|
2012-05-06 20:15:03 +02:00
|
|
|
String category();
|
2010-10-23 22:34:22 +02:00
|
|
|
Severity severity();
|
|
|
|
|
String message();
|
|
|
|
|
Position position();
|
2018-08-27 19:03:47 +02:00
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
*/
|
|
|
|
|
default Optional<String> rendered() { return Optional.empty(); }
|
|
|
|
|
}
|