Skip to content

Commit

Permalink
[FIXED JENKINS-12587] removed warnings during build
Browse files Browse the repository at this point in the history
  • Loading branch information
GerdZanker committed Dec 16, 2012
1 parent 76be461 commit 31e11b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/java/hudson/plugins/trac/TracProjectProperty.java
@@ -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;
Expand Down Expand Up @@ -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
Expand Down
Expand Up @@ -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.