Skip to content

Commit

Permalink
Fix comments and javadoc comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dushaniw committed May 10, 2020
1 parent 3aaacaa commit 5459d52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ private Set<Scope> getScopesToRegisterFromURITemplates(APIIdentifier apiIdentifi
//Check if it an existing shared scope, if so skip adding scope
if (!isSharedScopeNameExists(scopeKey, tenantDomain)) {
// Check if scope key is already assigned locally to a different API (Other than different versions of
// the same API.
// the same API).
if (!isScopeKeyAssignedLocally(apiIdentifier, scope.getKey(), tenantId)) {
scopesToRegister.add(scope);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9637,9 +9637,8 @@ public Set<String> getActiveTokensOfConsumerKey(String consumerKey) throws APIMa
}

/**
* Check whether the given scope key is already assigned locally to another API than given under given tenant.
* This will skip and return false, if no such APIs are available and even if such APIs are available, only when
* those are different versions of the same API which we are trying to attach the scope for.
* Check whether the given scope key is already assigned locally to another API which are different from the given
* API or its versioned APIs under given tenant.
*
* @param apiIdentifier API Identifier
* @param scopeKey candidate scope key
Expand Down

0 comments on commit 5459d52

Please sign in to comment.