Skip to content

Commit 8d9e348

Browse files
samatstarionclaude
andcommitted
[Fix] return concrete Dictionary instead of IDictionary for perf (SonarCloud CA1859)
Bump ReqIFSharp to 10.1.1 and ReqIFSharp.Extensions to 5.2.1. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BPACqKBdKLEnEy7h4LASBj
1 parent e257890 commit 8d9e348

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

ReqIFSharp.Extensions/ReqIFSharp.Extensions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>5.2.0</Version>
5+
<Version>5.2.1</Version>
66
<LangVersion>12.0</LangVersion>
77
<Title>ReqIFSharp.Extensions</Title>
88
<Description>A .NET library that provides extenions and services to operate on ReqIF documents.</Description>
@@ -19,7 +19,7 @@
1919
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2020
<GenerateSBOM>true</GenerateSBOM>
2121
<PackageReleaseNotes>
22-
- [Update] to reqifsharp version 10.1.0
22+
- [Update] to reqifsharp version 10.1.1
2323
</PackageReleaseNotes>
2424
<PackageReadmeFile>README.md</PackageReadmeFile>
2525
</PropertyGroup>

ReqIFSharp.Tests/NamespaceRetentionTestFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private static List<IDictionary<string, string>> ExtractArchiveRootAttributes(St
279279
/// <summary>
280280
/// Collects the union of namespace declarations (<c>xmlns</c> / <c>xmlns:prefix</c>) across the supplied documents.
281281
/// </summary>
282-
private static IDictionary<string, string> UnionNamespaceDeclarations(IEnumerable<IDictionary<string, string>> documents)
282+
private static Dictionary<string, string> UnionNamespaceDeclarations(IEnumerable<IDictionary<string, string>> documents)
283283
{
284284
var union = new Dictionary<string, string>();
285285

@@ -301,7 +301,7 @@ private static IDictionary<string, string> UnionNamespaceDeclarations(IEnumerabl
301301
/// Reads the attributes declared on the <c>REQ-IF</c> root element of a serialized document, keyed by
302302
/// their qualified name (e.g. <c>xmlns</c>, <c>xmlns:configuration</c>, <c>xsi:schemaLocation</c>).
303303
/// </summary>
304-
private static IDictionary<string, string> ExtractRootAttributes(Stream stream)
304+
private static Dictionary<string, string> ExtractRootAttributes(Stream stream)
305305
{
306306
if (stream.CanSeek)
307307
{

ReqIFSharp/ReqIFSharp.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<TargetFramework>netstandard2.0</TargetFramework>
7-
<Version>10.1.0</Version>
7+
<Version>10.1.1</Version>
88
<LangVersion>12.0</LangVersion>
99
<Title>ReqIFSharp</Title>
1010
<Description>A .NET library to deserialize (read) and serialize (write) OMG ReqIF documents.</Description>
@@ -21,9 +21,7 @@
2121
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2222
<GenerateSBOM>true</GenerateSBOM>
2323
<PackageReleaseNotes>
24-
- [Update] lower Microsoft.Extensions.Logging.Abstractions floor to 6.0.0; fixes #77
25-
- [Add] uml-like metadata decorators on the model; fixes #27
26-
- [Fix] retain namespaces and root attributes on round-trip; fixes #44
24+
- [Update] dependencies
2725
</PackageReleaseNotes>
2826
<PackageReadmeFile>README.md</PackageReadmeFile>
2927
</PropertyGroup>

0 commit comments

Comments
 (0)