Skip to content

Commit e690ade

Browse files
shbhmexeMarkEWaite
andauthored
Fix Javadoc grammar in InstanceIdentityProvider; prefer toString() for readability in Functions (#20000)
* Fix Javadoc grammar in InstanceIdentityProvider; use toString() for readability in Functions.toEmailSafeString - Correct “will must be currently valid” -> “must be currently valid” in Javadoc (two occurrences) - Prefer buf.toString() over String.valueOf(buf) for clarity; no behavior change Signed-off-by: shbhmexe <shubhushukla586@gmail.com> * ci: retrigger checks Signed-off-by: shbhmexe <shubhushukla586@gmail.com> * tests: make ViewTest.privateView resilient to new dashboard tabs - Detect the active view using either classic tabBar markup or the new app-build-tabs buttons. - Avoid brittle XPath that breaks when NewDashboardPageUserExperimentalFlag is enabled. No production code changes. Signed-off-by: shbhmexe <shubhushukla586@gmail.com> * Reverted the changes introduced in the most recent commit on this branch. Replaces support for both classic and new dashboard tab selectors with a single XPath targeting the classic tab bar. This streamlines the test by removing conditional logic for different UI layouts. * Remove unrelated change * Fix indentation in ViewTest privateViewsPage section Corrected indentation for the 'viewLabel' assignment in the ViewTest to improve code readability and maintain consistency. --------- Signed-off-by: shbhmexe <shubhushukla586@gmail.com> Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
1 parent 7df7a94 commit e690ade

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/java/hudson/Functions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ public static String toEmailSafeString(String projectName) {
19901990
else
19911991
buf.append('_'); // escape
19921992
}
1993-
return String.valueOf(buf);
1993+
return buf.toString();
19941994
}
19951995

19961996
/**

core/src/main/java/jenkins/model/identity/InstanceIdentityProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected PRIV getPrivateKey() {
118118

119119
/**
120120
* Gets the self-signed {@link X509Certificate} that is associated with this identity. The certificate
121-
* will must be currently valid. Repeated calls to this method may result in new certificates being generated.
121+
* must be currently valid. Repeated calls to this method may result in new certificates being generated.
122122
*
123123
* @return the certificate. {@code null} if {@link #getKeyPair()} is {@code null}.
124124
*/
@@ -288,7 +288,7 @@ public PRIV getPrivateKey() {
288288

289289
/**
290290
* Gets the self-signed {@link X509Certificate} that is associated with this identity. The certificate
291-
* will must be currently valid. Repeated calls to this method may result in new certificates being generated.
291+
* must be currently valid. Repeated calls to this method may result in new certificates being generated.
292292
*
293293
* @return the certificate. {@code null} if {@link #getKeyPair()} is {@code null}.
294294
*/

0 commit comments

Comments
 (0)