Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2020-02-17 07:23:04 +0000
committerStephan Herrmann2020-04-05 21:49:27 +0000
commit2dc615c30449e9dd89c3902662985505bf1b042b (patch)
tree9a20f39fe067f2551fda689cd6eac95c3c79c0a7 /org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt
parent1516e7dfb31d2d0e5dd3c25b8d561bd62562204a (diff)
downloadeclipse.jdt.core-2dc615c30449e9dd89c3902662985505bf1b042b.tar.gz
eclipse.jdt.core-2dc615c30449e9dd89c3902662985505bf1b042b.tar.xz
eclipse.jdt.core-2dc615c30449e9dd89c3902662985505bf1b042b.zip
Bug 560204 - Map Diagnostic.Kind.{NOTE,OTHER} to ProblemSeverities.InfoI20200406-0120I20200405-1800
Formerly those Kinds were emitted as warnings, which is wrong and may make builds fail when they should not. ("Zero-warnings builds") Change-Id: I2e4c9bd15af412bed7ce4a2e76262076900b6fe4 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseMessagerImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseMessagerImpl.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseMessagerImpl.java
index 63aa906019..fd3bb99b1c 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseMessagerImpl.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseMessagerImpl.java
@@ -188,8 +188,11 @@ public class BaseMessagerImpl {
case ERROR :
severity = ProblemSeverities.Error;
break;
+ case NOTE :
+ case OTHER:
+ severity = ProblemSeverities.Info;
+ break;
default :
- // There is no "INFO" equivalent in JDT
severity = ProblemSeverities.Warning;
break;
}

Back to the top