-
Task
-
Resolution: Fixed
-
Minor
-
None
In:
https://javadoc.jenkins-ci.org/hudson/model/Computer.html#getDescription--
Shows:
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @Exported @NonNull public
getDescription()
Returns the Node description for this computer. Empty String if the Node is null.
Why is that method Restricted?
mvn install shows this error when trying to use that method:
[INFO] — access-modifier-checker:1.27:enforce (default-enforce) @ SystemInfo —
[ERROR] io/jenkins/plugins/sysinfo/SysInfoAction:46 hudson/model/Computer.getDescription()Ljava/lang/String; must not be used