Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
In the specification of lint is the Serverity of information given as
the String "Information"
(http://grepcode.com/file/repo1.maven.org/maven2/com.android.tools.lint/lint_api/r16/com/android/tools/lint/detector/api/Severity.java).
Further more here is an result-example:
<issue id="OldTargetApi" severity="Information" message="Not
targetin..........">
In the file: android-lint-plugin / src / main / java / org / jenkinsci
/ plugins / android_lint / parser / LintParser.java
in your method:
private Priority getPriority(String severity) {
if (SEVERITY_FATAL.equals(severity) ||
SEVERITY_ERROR.equals(severity))
if (SEVERITY_INFORMATIONAL.equals(severity))
{ return Priority.LOW; } return Priority.NORMAL;
}
you check against the constant SEVERITY_INFORMATIONAL which is
"Informational", this is wrong. As you can see in the specification
the string itself should be "Information".
The correct constant should be:
/** Severity constant value from
. */
private static final String SEVERITY_INFORMATIONAL = "Information";
Code changed in jenkins
User: Christopher Orr
Path:
src/main/java/org/jenkinsci/plugins/android_lint/parser/LintParser.java
src/test/resources/org/jenkinsci/plugins/android_lint/parser/lint-results_r20.xml
http://jenkins-ci.org/commit/android-lint-plugin/8263e067ab3df0f260e46bb467519b75074e85c1
Log:
[FIXED JENKINS-16645] Fix constant value for 'informational' severity.
–
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.