Skip to content

Commit 55a8294

Browse files
authored
Polish document and name of parameter (#1738)
- doc: Fix a typo in description of booting options for sentinel-dashboard - Fix mismatched name of parameter to its comment for VersionUtils.parseVersion()
1 parent cc2d1a6 commit 55a8294

File tree

1 file changed

+4
-4
lines changed
  • sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/util

1 file changed

+4
-4
lines changed

sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/util/VersionUtils.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ public final class VersionUtils {
3232
/**
3333
* Parse version of Sentinel from raw string.
3434
*
35-
* @param versionFull version string
35+
* @param verStr version string
3636
* @return parsed {@link SentinelVersion} if the version is valid; empty if
3737
* there is something wrong with the format
3838
*/
39-
public static Optional<SentinelVersion> parseVersion(String s) {
40-
if (StringUtil.isBlank(s)) {
39+
public static Optional<SentinelVersion> parseVersion(String verStr) {
40+
if (StringUtil.isBlank(verStr)) {
4141
return Optional.empty();
4242
}
4343
try {
44-
String versionFull = s;
44+
String versionFull = verStr;
4545
SentinelVersion version = new SentinelVersion();
4646

4747
// postfix

0 commit comments

Comments
 (0)