Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7594C200C4E for ; Mon, 27 Feb 2017 00:36:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 74479160B81; Sun, 26 Feb 2017 23:36:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 78514160B97 for ; Mon, 27 Feb 2017 00:36:57 +0100 (CET) Received: (qmail 40556 invoked by uid 500); 26 Feb 2017 23:36:52 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 38927 invoked by uid 99); 26 Feb 2017 23:36:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2017 23:36:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C8BFCDFFC2; Sun, 26 Feb 2017 23:36:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Date: Sun, 26 Feb 2017 23:37:49 -0000 Message-Id: <9c63d899ff20478ebc23172fec4b6888@git.apache.org> In-Reply-To: <1e7e127cca214d5a80ee73510374469b@git.apache.org> References: <1e7e127cca214d5a80ee73510374469b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [61/72] [abbrv] lucenenet git commit: Lucene.Net.TestFramework: Renamed Codecs\lucene45\ to Codecs\Lucene45\ archived-at: Sun, 26 Feb 2017 23:36:59 -0000 Lucene.Net.TestFramework: Renamed Codecs\lucene45\ to Codecs\Lucene45\ Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/7c9f5727 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/7c9f5727 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/7c9f5727 Branch: refs/heads/api-work Commit: 7c9f5727fbb024c553a6a9c99be65f9dc0f9081b Parents: 9e2f4c5 Author: Shad Storhaug Authored: Sun Feb 26 03:20:41 2017 +0700 Committer: Shad Storhaug Committed: Mon Feb 27 06:17:58 2017 +0700 ---------------------------------------------------------------------- .../Codecs/Lucene45/Lucene45RWCodec.cs | 88 ++++++++++++++++++++ .../Codecs/lucene45/Lucene45RWCodec.cs | 88 -------------------- .../Lucene.Net.TestFramework.csproj | 2 +- 3 files changed, 89 insertions(+), 89 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c9f5727/src/Lucene.Net.TestFramework/Codecs/Lucene45/Lucene45RWCodec.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.TestFramework/Codecs/Lucene45/Lucene45RWCodec.cs b/src/Lucene.Net.TestFramework/Codecs/Lucene45/Lucene45RWCodec.cs new file mode 100644 index 0000000..c610ca9 --- /dev/null +++ b/src/Lucene.Net.TestFramework/Codecs/Lucene45/Lucene45RWCodec.cs @@ -0,0 +1,88 @@ +namespace Lucene.Net.Codecs.Lucene45 +{ + /* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + using Lucene42FieldInfosFormat = Lucene.Net.Codecs.Lucene42.Lucene42FieldInfosFormat; + using Lucene42FieldInfosWriter = Lucene.Net.Codecs.Lucene42.Lucene42FieldInfosWriter; + using LuceneTestCase = Lucene.Net.Util.LuceneTestCase; + + /// + /// Read-write version of for testing. + /// +#pragma warning disable 612, 618 + public class Lucene45RWCodec : Lucene45Codec + { + private readonly FieldInfosFormat fieldInfosFormat; + + /// + /// LUCENENET specific + /// Creates the codec with OldFormatImpersonationIsActive = true. + /// + /// + /// Added so that SPIClassIterator can locate this Codec. The iterator + /// only recognises classes that have empty constructors. + /// + public Lucene45RWCodec() + : this(true) + { } + + /// + /// LUCENENET specific + /// Added to remove dependency on then-static + /// + public Lucene45RWCodec(bool oldFormatImpersonationIsActive) : base() + { + fieldInfosFormat = new Lucene42FieldInfosFormatAnonymousInnerClassHelper(oldFormatImpersonationIsActive); + } + + private class Lucene42FieldInfosFormatAnonymousInnerClassHelper : Lucene42FieldInfosFormat + { + private readonly bool _oldFormatImpersonationIsActive; + + /// + /// LUCENENET specific + /// Added to remove dependency on then-static + /// + public Lucene42FieldInfosFormatAnonymousInnerClassHelper(bool oldFormatImpersonationIsActive) : base() + { + _oldFormatImpersonationIsActive = oldFormatImpersonationIsActive; + } + + public override FieldInfosWriter FieldInfosWriter + { + get + { + if (!_oldFormatImpersonationIsActive) + { + return base.FieldInfosWriter; + } + else + { + return new Lucene42FieldInfosWriter(); + } + } + } + } + + public override FieldInfosFormat FieldInfosFormat + { + get { return fieldInfosFormat; } + } + } +#pragma warning restore 612, 618 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c9f5727/src/Lucene.Net.TestFramework/Codecs/lucene45/Lucene45RWCodec.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.TestFramework/Codecs/lucene45/Lucene45RWCodec.cs b/src/Lucene.Net.TestFramework/Codecs/lucene45/Lucene45RWCodec.cs deleted file mode 100644 index c610ca9..0000000 --- a/src/Lucene.Net.TestFramework/Codecs/lucene45/Lucene45RWCodec.cs +++ /dev/null @@ -1,88 +0,0 @@ -namespace Lucene.Net.Codecs.Lucene45 -{ - /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - using Lucene42FieldInfosFormat = Lucene.Net.Codecs.Lucene42.Lucene42FieldInfosFormat; - using Lucene42FieldInfosWriter = Lucene.Net.Codecs.Lucene42.Lucene42FieldInfosWriter; - using LuceneTestCase = Lucene.Net.Util.LuceneTestCase; - - /// - /// Read-write version of for testing. - /// -#pragma warning disable 612, 618 - public class Lucene45RWCodec : Lucene45Codec - { - private readonly FieldInfosFormat fieldInfosFormat; - - /// - /// LUCENENET specific - /// Creates the codec with OldFormatImpersonationIsActive = true. - /// - /// - /// Added so that SPIClassIterator can locate this Codec. The iterator - /// only recognises classes that have empty constructors. - /// - public Lucene45RWCodec() - : this(true) - { } - - /// - /// LUCENENET specific - /// Added to remove dependency on then-static - /// - public Lucene45RWCodec(bool oldFormatImpersonationIsActive) : base() - { - fieldInfosFormat = new Lucene42FieldInfosFormatAnonymousInnerClassHelper(oldFormatImpersonationIsActive); - } - - private class Lucene42FieldInfosFormatAnonymousInnerClassHelper : Lucene42FieldInfosFormat - { - private readonly bool _oldFormatImpersonationIsActive; - - /// - /// LUCENENET specific - /// Added to remove dependency on then-static - /// - public Lucene42FieldInfosFormatAnonymousInnerClassHelper(bool oldFormatImpersonationIsActive) : base() - { - _oldFormatImpersonationIsActive = oldFormatImpersonationIsActive; - } - - public override FieldInfosWriter FieldInfosWriter - { - get - { - if (!_oldFormatImpersonationIsActive) - { - return base.FieldInfosWriter; - } - else - { - return new Lucene42FieldInfosWriter(); - } - } - } - } - - public override FieldInfosFormat FieldInfosFormat - { - get { return fieldInfosFormat; } - } - } -#pragma warning restore 612, 618 -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c9f5727/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj b/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj index c7ac221..2f32d94 100644 --- a/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj +++ b/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj @@ -244,7 +244,7 @@ Code - + Code