lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnas...@apache.org
Subject [1/7] git commit: Fixing Get / Set Other
Date Sun, 21 Sep 2014 16:53:27 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master a85388772 -> cf1df6bec


Fixing Get / Set Other


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

Branch: refs/heads/master
Commit: 0fffb7322483fbee5896d7010050d4a224ae39b7
Parents: 6e90056
Author: Prescott Nasser <pnasser@apache.org>
Authored: Sun Sep 14 17:09:43 2014 -0700
Committer: Prescott Nasser <pnasser@apache.org>
Committed: Sun Sep 14 17:09:43 2014 -0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0fffb732/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs b/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
index 75334e6..7ab59e9 100644
--- a/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
+++ b/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
@@ -278,7 +278,7 @@ namespace Lucene.Net.Codecs.Pulsing
                 return null;
             
             var atts = de.Attributes();
-            return atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this);
+            return atts.AddAttribute<IPulsingEnumAttribute>().Enums()[this];
         }
 
         /// <summary>
@@ -288,7 +288,7 @@ namespace Lucene.Net.Codecs.Pulsing
         private DocsEnum SetOther(DocsEnum de, DocsEnum other)
         {
             var atts = de.Attributes();
-            return atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this, other);
+            return atts.AddAttribute<IPulsingEnumAttribute>().Enums()[this] = other;
         }
 
         ///<summary>


Mime
View raw message