Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-12424] Use messages from base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 8, 2012
1 parent 527bd3e commit fbbb1fe
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 292 deletions.
2 changes: 1 addition & 1 deletion plugin/pom.xml
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.40</version>
<version>1.41-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
Expand Down
12 changes: 6 additions & 6 deletions plugin/src/main/java/hudson/plugins/findbugs/FindBugsResult.java
Expand Up @@ -100,7 +100,12 @@ protected void configure(final XStream xstream) {

@Override
public String getSummary() {
return ResultSummary.createSummary(this);
return "FindBugs: " + createDefaultSummary(FindBugsDescriptor.RESULT_URL, getNumberOfAnnotations(), getNumberOfModules());
}

@Override
protected String createDeltaMessage() {
return createDefaultDeltaMessage(FindBugsDescriptor.RESULT_URL, getNumberOfNewWarnings(), getNumberOfFixedWarnings());
}

/**
Expand All @@ -121,11 +126,6 @@ public int getNotInCloud() {
return notInCloud;
}

@Override
protected String createDeltaMessage() {
return ResultSummary.createDeltaMessage(this);
}

@Override
protected String getSerializationFileName() {
return "findbugs-warnings.xml";
Expand Down
86 changes: 0 additions & 86 deletions plugin/src/main/java/hudson/plugins/findbugs/ResultSummary.java

This file was deleted.

Expand Up @@ -4,15 +4,6 @@ FindBugs.ProjectAction.Name=FindBugs Warnings

FindBugs.Trend.Name=FindBugs Trend

FindBugs.ResultAction.OneWarning=1 warning
FindBugs.ResultAction.MultipleWarnings={0} warnings
FindBugs.ResultAction.OneNewWarning=1 new warning
FindBugs.ResultAction.MultipleNewWarnings={0} new warnings
FindBugs.ResultAction.OneFixedWarning=1 fixed warning
FindBugs.ResultAction.MultipleFixedWarnings={0} fixed warnings
FindBugs.ResultAction.OneFile=from one FindBugs analysis.
FindBugs.ResultAction.MultipleFiles=from {0} FindBugs analyses.

FindBugs.ResultAction.HealthReportNoItem=FindBugs: no warnings found.
FindBugs.ResultAction.HealthReportSingleItem=FindBugs: one warning found.
FindBugs.ResultAction.HealthReportMultipleItem=FindBugs: {0} warnings found.
Expand Down
Expand Up @@ -4,15 +4,6 @@ FindBugs.ProjectAction.Name=FindBugs Warnungen

FindBugs.Trend.Name=FindBugs Trend

FindBugs.ResultAction.OneWarning=eine Warnung
FindBugs.ResultAction.MultipleWarnings={0} Warnungen
FindBugs.ResultAction.OneNewWarning=eine neue Warnung
FindBugs.ResultAction.MultipleNewWarnings={0} neue Warnungen
FindBugs.ResultAction.OneFixedWarning=eine behobene Warnung
FindBugs.ResultAction.MultipleFixedWarnings={0} behobene Warnungen
FindBugs.ResultAction.OneFile=aus einer FindBugs Datei.
FindBugs.ResultAction.MultipleFiles=aus {0} FindBugs Dateien.

FindBugs.ResultAction.HealthReportNoItem=FindBugs: Keine Warnungen gefunden.
FindBugs.ResultAction.HealthReportSingleItem=FindBugs: Eine Warnung gefunden.
FindBugs.ResultAction.HealthReportMultipleItem=FindBugs: {0} Warnungen gefunden.
Expand Down
Expand Up @@ -4,15 +4,6 @@ FindBugs.ProjectAction.Name=FindBugs\u8b66\u544a

FindBugs.Trend.Name=FindBugs\u8b66\u544a\u306e\u63a8\u79fb

FindBugs.ResultAction.OneWarning=1\u500b\u306e\u8b66\u544a
FindBugs.ResultAction.MultipleWarnings={0}\u500b\u306e\u8b66\u544a
FindBugs.ResultAction.OneNewWarning=1\u500b\u306e\u65b0\u3057\u3044\u8b66\u544a
FindBugs.ResultAction.MultipleNewWarnings={0}\u500b\u306e\u65b0\u3057\u3044\u8b66\u544a
FindBugs.ResultAction.OneFixedWarning=1\u500b\u306e\u4fee\u6b63\u3055\u308c\u305f\u8b66\u544a
FindBugs.ResultAction.MultipleFixedWarnings={0}\u500b\u306e\u4fee\u6b63\u3055\u308c\u305f\u8b66\u544a
FindBugs.ResultAction.OneFile=\u304c\u30011\u500b\u306eFindBugs\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u3002
FindBugs.ResultAction.MultipleFiles=\u304c\u3001{0}\u500b\u306eFindBugs\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u3002

FindBugs.ResultAction.HealthReportNoItem=FindBugs: \u8b66\u544a\u306f\u3042\u308a\u307e\u305b\u3093\u3002
FindBugs.ResultAction.HealthReportSingleItem=FindBugs: 1\u500b\u306e\u8b66\u544a\u304c\u3042\u308a\u307e\u3059\u3002
FindBugs.ResultAction.HealthReportMultipleItem=FindBugs: {0}\u500b\u306e\u8b66\u544a\u304c\u3042\u308a\u307e\u3059\u3002
Expand Down
172 changes: 0 additions & 172 deletions plugin/src/test/java/hudson/plugins/findbugs/ResultSummaryTest.java

This file was deleted.

1 comment on commit fbbb1fe

@buildhive
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jenkins » findbugs-plugin #6 FAILURE
Looks like this commit caused a build failure
(what's this?)

Please sign in to comment.