Lucene.Net.Support.PriorityQueue: Added Serializable attribute

Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/65a2ee2f
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/65a2ee2f
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/65a2ee2f

Branch: refs/heads/master
Commit: 65a2ee2f444bb9f559bd5c8db53012c2fea2349f
Parents: 389daee
Author: Shad Storhaug <[email protected]>
Authored: Sat Sep 2 05:20:44 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Sat Sep 2 05:20:44 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Support/PriorityQueue.cs | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/65a2ee2f/src/Lucene.Net/Support/PriorityQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/PriorityQueue.cs 
b/src/Lucene.Net/Support/PriorityQueue.cs
index 1badc39..86b97bc 100644
--- a/src/Lucene.Net/Support/PriorityQueue.cs
+++ b/src/Lucene.Net/Support/PriorityQueue.cs
@@ -36,6 +36,9 @@ namespace Lucene.Net.Support
     /// A <see cref="PriorityQueue{T}"/> is not synchronized.
     /// </summary>
     /// <typeparam name="T">Type of elements</typeparam>
+#if FEATURE_SERIALIZABLE
+    [Serializable]
+#endif
     public class PriorityQueue<T> : ICollection<T> where T : class // 
LUCENENET: added constraint so we can return null like the original code
     {
         private static readonly int DEFAULT_CAPACITY = 11;

Reply via email to