Skip to content
Permalink
Browse files
[FIXED JENKINS-12587] removed warnings during build
  • Loading branch information
GerdZanker committed Dec 16, 2012
1 parent 76be461 commit 31e11b8729200c0874e240aa3af832a7e293df25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
@@ -1,5 +1,8 @@
package hudson.plugins.trac;

import java.util.Collection;
import java.util.Collections;

import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Job;
@@ -38,8 +41,8 @@ public TracProjectProperty(String tracWebsite) {
}

@Override
public Action getJobAction(AbstractProject<?,?> job) {
return new TracLinkAction(this);
public Collection<? extends Action> getJobActions(AbstractProject<?,?> job) {
return Collections.singletonList(new TracLinkAction(this));
}

@Extension
@@ -85,6 +85,6 @@ private void assertAnnotatedTextEquals(String originalText, String expectedAnnot
TracLinkAnnotator annotator = new TracLinkAnnotator();
annotator.annotate(TRAC_URL, markupText);

assertEquals(expectedAnnotatedText, markupText.toString());
assertEquals(expectedAnnotatedText, markupText.toString(false));
}
}

0 comments on commit 31e11b8

Please sign in to comment.