Skip to content

Commit

Permalink
Define FolderComputation.fullName for use from OldDataMonitor (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell authored Dec 16, 2024
2 parents c9b85a6 + 16e25eb commit 4161e47
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import hudson.diagnosis.OldDataMonitor;
import javax.servlet.ServletException;
import net.jcip.annotations.GuardedBy;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -293,6 +294,14 @@ public String getDisplayName() {
return AlternativeUiTextProvider.get(DISPLAY_NAME, this, Messages.FolderComputation_DisplayName());
}

/**
* May be used by {@link OldDataMonitor} in its {@code manage} view.
* @return {@link ComputedFolder#getFullName}
*/
public String getFullName() {
return folder.getFullName();

Check warning on line 302 in src/main/java/com/cloudbees/hudson/plugins/folder/computed/FolderComputation.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 302 is not covered by tests
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 4161e47

Please sign in to comment.