Skip to content

Commit

Permalink
Merge pull request #365 from catenax-ng/fix/manufacturerId-case-sensi…
Browse files Browse the repository at this point in the history
…tivity

fix(irs-api):[-] Make manufacturerId case-insensitive
  • Loading branch information
ds-jhartmann authored Sep 29, 2022
2 parents c4ecac4 + 786e3df commit e290f96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ci/spotbugs-excludes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@
<Class name="org.eclipse.tractusx.irs.util.JobMetrics$JobMetricsBuilder"/>
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
</Match>
<Match>
<!-- This one is an extreme edge case and not relevant in our case. -->
<Class name="org.eclipse.tractusx.irs.component.assetadministrationshell.AssetAdministrationShellDescriptor"/>
<Bug pattern="IMPROPER_UNICODE"/>
</Match>
</FindBugsFilter>
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class AssetAdministrationShellDescriptor {
* @return ManufacturerId value from Specific Asset Ids
*/
public Optional<String> findManufacturerId() {
return this.specificAssetIds.stream().filter(assetId -> "ManufacturerId".equals(assetId.getKey())).map(IdentifierKeyValuePair::getValue).findFirst();
return this.specificAssetIds.stream().filter(assetId -> "ManufacturerId".equalsIgnoreCase(assetId.getKey())).map(IdentifierKeyValuePair::getValue).findFirst();
}

/**
Expand Down

0 comments on commit e290f96

Please sign in to comment.