You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/05/25 15:05:28 UTC

[isis] branch master updated: ISIS-2690: minor: typo

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 55d8c95  ISIS-2690: minor: typo
55d8c95 is described below

commit 55d8c95acb208331cfcc7e1c12017d1f48a44876
Author: Andi Huber <ah...@apache.org>
AuthorDate: Tue May 25 17:05:12 2021 +0200

    ISIS-2690: minor: typo
---
 .../applib/services/appfeat/ApplicationFeatureId.java     | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/api/applib/src/main/java/org/apache/isis/applib/services/appfeat/ApplicationFeatureId.java b/api/applib/src/main/java/org/apache/isis/applib/services/appfeat/ApplicationFeatureId.java
index c546df6..766f6ee 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/services/appfeat/ApplicationFeatureId.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/services/appfeat/ApplicationFeatureId.java
@@ -174,18 +174,17 @@ implements
     }
 
     private static void initMember(final ApplicationFeatureId featureId, final @Nullable String memberName) {
-        featureId.memberName = memberNameForSignature(memberName); // just in case
+        featureId.memberName = stripOffParamsIfAny(memberName); // just in case
     }
 
-    // strips off the parameter types
-    private static String memberNameForSignature(final @Nullable String memberSiganture) {
-        if(_Strings.isEmpty(memberSiganture)) {
-            return memberSiganture;
+    private static String stripOffParamsIfAny(final @Nullable String name) {
+        if(_Strings.isEmpty(name)) {
+            return name;
         }
-        final int paramListStartIndex = memberSiganture.indexOf('(');
+        final int paramListStartIndex = name.indexOf('(');
         return paramListStartIndex>-1
-                ? memberSiganture.substring(0, paramListStartIndex)
-                : memberSiganture;
+                ? name.substring(0, paramListStartIndex)
+                : name;
     }
 
     // -- CONSTRUCTOR