diff --git a/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj b/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
index b3c482215..9651dd6d7 100644
--- a/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
+++ b/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
@@ -10,7 +10,7 @@
Microsoft
Microsoft.OpenApi.Readers
Microsoft.OpenApi.Readers
- 1.6.4-preview3
+ 1.6.4-preview4
OpenAPI.NET Readers for JSON and YAML documents
© Microsoft Corporation. All rights reserved.
OpenAPI .NET
diff --git a/src/Microsoft.OpenApi/Any/OpenApiAnyCloneHelper.cs b/src/Microsoft.OpenApi/Any/OpenApiAnyCloneHelper.cs
index 4a67e074e..e34fb8cbf 100644
--- a/src/Microsoft.OpenApi/Any/OpenApiAnyCloneHelper.cs
+++ b/src/Microsoft.OpenApi/Any/OpenApiAnyCloneHelper.cs
@@ -27,9 +27,9 @@ public static IOpenApiAny CloneFromCopyConstructor(IOpenApiAny obj)
{
return (IOpenApiAny)ci.Invoke(new object[] { obj });
}
- }
+ }
}
-
+
return obj;
}
}
diff --git a/src/Microsoft.OpenApi/Helpers/DictionaryCloneHelper.cs b/src/Microsoft.OpenApi/Helpers/DictionaryCloneHelper.cs
deleted file mode 100644
index 1af7bc8c4..000000000
--- a/src/Microsoft.OpenApi/Helpers/DictionaryCloneHelper.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT license.
-
-using System;
-using System.Collections.Generic;
-
-namespace Microsoft.OpenApi.Helpers
-{
- ///
- /// Helper class for deep cloning dictionaries.
- ///
- internal static class DictionaryCloneHelper
- {
- ///
- /// Deep clone key value pairs in a dictionary.
- ///
- /// The type of the key of the dictionary.
- /// The type of the value of the dictionary.
- /// The target dictionary to clone.
- /// The cloned dictionary.
- internal static Dictionary Clone(IDictionary dictionary)
- {
- if (dictionary is null) return null;
-
- var clonedDictionary = new Dictionary(dictionary.Keys.Count);
- var clonedObjects = new Dictionary