Skip to content

Commit da9f705

Browse files
Fix deprecated method documentation in AdministrativeMonitor
1 parent 689cf94 commit da9f705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/hudson/model/AdministrativeMonitor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ public void doSnooze(StaplerRequest2 req, StaplerResponse2 rsp) throws IOExcepti
309309
* </p>
310310
* @since 2.233
311311
* @deprecated Callers should use {@link #checkRequiredPermission()} or {@link #hasRequiredPermission()}.
312+
*/
312313
@Deprecated
313-
*/
314314
public Permission getRequiredPermission() {
315315
return Jenkins.ADMINISTER;
316316
}
@@ -332,7 +332,7 @@ public void checkRequiredPermission() {
332332
/**
333333
* Checks if the current user has the minimum required permission to view this administrative monitor.
334334
* <p>
335-
* Subclasses may override this method and {@link #checkRequiredPermission()} instead of {@link #getRequiredPermission()} to perform more complex permission checks,
335+
* Subclasses may override this method and {@link #checkRequiredPermission()} instead of {@link #getRequiredPermission} to perform more complex permission checks,
336336
* for example, checking either {@link Jenkins#MANAGE} or {@link Jenkins#SYSTEM_READ}.
337337
* </p>
338338
* @see #getRequiredPermission()

0 commit comments

Comments
 (0)