-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Changes done for AAS updates v3.0.1 #243
Feat: Changes done for AAS updates v3.0.1 #243
Conversation
…lity restricted to user with view-role
…v.3.0.1 getDescription request updated to new API version 3.0.1.
…-V3.0.1 # Conflicts: # backend/src/test/java/org/eclipse/tractusx/semantics/registry/AssetAdministrationShellApiTest.java
…o feature/prepare-ASS-V3.0.1
.../org/eclipse/tractusx/semantics/registry/controller/AssetAdministrationShellApiDelegate.java
Show resolved
Hide resolved
Integer limit, String cursor, @RequestHeader String externalSubjectId) { | ||
if (assetIds == null || assetIds.isEmpty()) { | ||
return new ResponseEntity<>(new GetAllAssetAdministrationShellIdsByAssetLink200Response(), HttpStatus.OK); | ||
} | ||
|
||
List<SpecificAssetId> listSpecificAssetId = Optional.of(assetIds).orElse(Collections.emptyList()). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
orElse
will be invoked always irrespective of whether the value present in Optional
. So it is recommended to use orElseGet
.
LGTM |
…-V3.0.1 # Conflicts: # CHANGELOG.md
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description