summaryrefslogtreecommitdiff
path: root/src/main/java/com/fivetran/javac/message/LintMessage.java
diff options
context:
space:
mode:
authorGeorgie <george@fivetran.com>2016-03-27 19:12:07 -0700
committerGeorgie <george@fivetran.com>2016-03-27 19:13:23 -0700
commit373040758c4293dfcc6520d8abb72cd7cfe54a1b (patch)
tree61599e295c7bcfdfd43911742020c7ce8f6605c4 /src/main/java/com/fivetran/javac/message/LintMessage.java
parent11856812f82cf8f90781bf4d5ebafb8ab2701c25 (diff)
downloadjava-language-server-373040758c4293dfcc6520d8abb72cd7cfe54a1b.zip
This isn't a fivetran project
Diffstat (limited to 'src/main/java/com/fivetran/javac/message/LintMessage.java')
-rw-r--r--src/main/java/com/fivetran/javac/message/LintMessage.java49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/main/java/com/fivetran/javac/message/LintMessage.java b/src/main/java/com/fivetran/javac/message/LintMessage.java
deleted file mode 100644
index 441bd4a..0000000
--- a/src/main/java/com/fivetran/javac/message/LintMessage.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.fivetran.javac.message;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-
-import java.net.URI;
-import java.nio.file.Path;
-import java.util.Optional;
-
-public class LintMessage {
-
- /**
- * The range to which this diagnostic applies.
- */
- public final Range range;
-
- /**
- * The human-readable message.
- */
- public final String message;
-
- /**
- * A human-readable string describing the source of this
- * diagnostic, e.g. 'typescript' or 'super lint'.
- */
- public Optional<String> source = Optional.empty();
-
- /**
- * The severity, default is [error](#DiagnosticSeverity.Error).
- */
- public final Type severity;
-
- public LintMessage(Range range, String message, Type severity) {
- this.range = range;
- this.message = message;
- this.severity = severity;
- }
-
- /**
- * Must exactly match vscode.DiagnosticSeverity
- */
- public static enum Type {
- Error, Warning, Information, Hint;
-
- @JsonValue
- public int toJson() {
- return this.ordinal();
- }
- }
-}