lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: Remove use of C# 6 features
Date Thu, 07 Apr 2016 18:01:09 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master bc720e295 -> 9206d95f4


Remove use of C# 6 features


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

Branch: refs/heads/master
Commit: c41b390556143c0fc7115bf82ecf4085238e5f60
Parents: e218ff6
Author: Elizabeth Maher <enewman@microsoft.com>
Authored: Fri Mar 25 07:15:19 2016 -0700
Committer: Elizabeth Maher <enewman@microsoft.com>
Committed: Fri Mar 25 07:15:19 2016 -0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Codecs/Compressing/CompressionMode.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c41b3905/src/Lucene.Net.Core/Codecs/Compressing/CompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Codecs/Compressing/CompressionMode.cs b/src/Lucene.Net.Core/Codecs/Compressing/CompressionMode.cs
index f319483..f21457c 100644
--- a/src/Lucene.Net.Core/Codecs/Compressing/CompressionMode.cs
+++ b/src/Lucene.Net.Core/Codecs/Compressing/CompressionMode.cs
@@ -238,7 +238,7 @@ namespace Lucene.Net.Codecs.Compressing
 
                 if (decompressedBytes.Length != originalLength)
                 {
-                    throw new CorruptIndexException($"Length mismatch: {decompressedBytes.Length}
!= {originalLength} (resource={input})");
+                    throw new CorruptIndexException("Length mismatch: " + decompressedBytes.Length
+ " != " + originalLength + " (resource=" + input + ")");
                 }
 
                 bytes.Bytes = decompressedBytes;


Mime
View raw message