Modified: incubator/lucene.net/trunk/src/core/Messages/INLSException.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Messages/INLSException.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/core/Messages/INLSException.cs (original)
+++ incubator/lucene.net/trunk/src/core/Messages/INLSException.cs Thu May 31 04:12:43 2012
@@ -1,36 +1,36 @@
-/*
- * 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 System;
-
-namespace Lucene.Net.Messages
-{
-
- /// <summary> Interface that exceptions should implement to support lazy loading of
messages.
- ///
- /// For Native Language Support (NLS), system of software internationalization.
- ///
- /// This Interface should be implemented by all exceptions that require
- /// translation
- ///
- /// </summary>
- public interface INLSException
- {
- /// <value> a instance of a class that implements the Message interface </value>
- Message MessageObject { get; }
- }
+/*
+ * 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 System;
+
+namespace Lucene.Net.Messages
+{
+
+ /// <summary> Interface that exceptions should implement to support lazy loading of
messages.
+ ///
+ /// For Native Language Support (NLS), system of software internationalization.
+ ///
+ /// This Interface should be implemented by all exceptions that require
+ /// translation
+ ///
+ /// </summary>
+ public interface INLSException
+ {
+ /// <value> a instance of a class that implements the Message interface </value>
+ Message MessageObject { get; }
+ }
}
\ No newline at end of file
Propchange: incubator/lucene.net/trunk/src/core/Messages/INLSException.cs
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/lucene.net/trunk/src/core/Support/ThreadLock.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Support/ThreadLock.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/core/Support/ThreadLock.cs (original)
+++ incubator/lucene.net/trunk/src/core/Support/ThreadLock.cs Thu May 31 04:12:43 2012
@@ -1,61 +1,61 @@
-using System.Threading;
-
-namespace Lucene.Net.Support
-{
- /// <summary>
- /// Abstract base class that provides a synchronization interface
- /// for derived lock types
- /// </summary>
- public abstract class ThreadLock
- {
- public abstract void Enter(object obj);
- public abstract void Exit(object obj);
-
- private static readonly ThreadLock _nullLock = new NullThreadLock();
- private static readonly ThreadLock _monitorLock = new MonitorThreadLock();
-
- /// <summary>
- /// A ThreadLock class that actually does no locking
- /// Used in ParallelMultiSearcher/MultiSearcher
- /// </summary>
- public static ThreadLock NullLock
- {
- get { return _nullLock; }
- }
-
- /// <summary>
- /// Wrapper class for the Monitor Enter/Exit methods
- /// using the <see cref="ThreadLock"/> interface
- /// </summary>
- public static ThreadLock MonitorLock
- {
- get { return _monitorLock; }
- }
-
- private sealed class NullThreadLock : ThreadLock
- {
- public override void Enter(object obj)
- {
- // Do nothing
- }
-
- public override void Exit(object obj)
- {
- // Do nothing
- }
- }
-
- private sealed class MonitorThreadLock : ThreadLock
- {
- public override void Enter(object obj)
- {
- Monitor.Enter(obj);
- }
-
- public override void Exit(object obj)
- {
- Monitor.Exit(obj);
- }
- }
- }
-}
+using System.Threading;
+
+namespace Lucene.Net.Support
+{
+ /// <summary>
+ /// Abstract base class that provides a synchronization interface
+ /// for derived lock types
+ /// </summary>
+ public abstract class ThreadLock
+ {
+ public abstract void Enter(object obj);
+ public abstract void Exit(object obj);
+
+ private static readonly ThreadLock _nullLock = new NullThreadLock();
+ private static readonly ThreadLock _monitorLock = new MonitorThreadLock();
+
+ /// <summary>
+ /// A ThreadLock class that actually does no locking
+ /// Used in ParallelMultiSearcher/MultiSearcher
+ /// </summary>
+ public static ThreadLock NullLock
+ {
+ get { return _nullLock; }
+ }
+
+ /// <summary>
+ /// Wrapper class for the Monitor Enter/Exit methods
+ /// using the <see cref="ThreadLock"/> interface
+ /// </summary>
+ public static ThreadLock MonitorLock
+ {
+ get { return _monitorLock; }
+ }
+
+ private sealed class NullThreadLock : ThreadLock
+ {
+ public override void Enter(object obj)
+ {
+ // Do nothing
+ }
+
+ public override void Exit(object obj)
+ {
+ // Do nothing
+ }
+ }
+
+ private sealed class MonitorThreadLock : ThreadLock
+ {
+ public override void Enter(object obj)
+ {
+ Monitor.Enter(obj);
+ }
+
+ public override void Exit(object obj)
+ {
+ Monitor.Exit(obj);
+ }
+ }
+ }
+}
Propchange: incubator/lucene.net/trunk/src/core/Support/ThreadLock.cs
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/lucene.net/trunk/src/core/Util/IAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Util/IAttribute.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/core/Util/IAttribute.cs (original)
+++ incubator/lucene.net/trunk/src/core/Util/IAttribute.cs Thu May 31 04:12:43 2012
@@ -1,27 +1,27 @@
-/*
- * 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 System;
-
-namespace Lucene.Net.Util
-{
-
- /// <summary> Base interface for attributes.</summary>
- public interface IAttribute
- {
- }
+/*
+ * 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 System;
+
+namespace Lucene.Net.Util
+{
+
+ /// <summary> Base interface for attributes.</summary>
+ public interface IAttribute
+ {
+ }
}
\ No newline at end of file
Propchange: incubator/lucene.net/trunk/src/core/Util/IAttribute.cs
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj (original)
+++ incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj Thu May 31 04:12:43
2012
@@ -1,82 +1,82 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{66C13054-FF41-4C1D-BD0D-8DA009D1DFFD}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Lucene.Net.Index.Memory.Test</RootNamespace>
- <AssemblyName>Lucene.Net.Contrib.Memory.Test</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>..\..\..\build\bin\contrib\Memory\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\..\..\build\bin\contrib\Memory\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="nunit.framework">
- <HintPath>..\..\..\lib\NUnit.org\NUnit\2.5.9\bin\net-2.0\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- </ItemGroup>
- <Choose>
- <When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' ==
'') and '$(TargetFrameworkVersion)' == 'v3.5'">
- <ItemGroup>
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- </ItemGroup>
- </When>
- <Otherwise />
- </Choose>
- <ItemGroup>
- <Compile Include="MemoryIndexTest.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\..\src\contrib\Memory\Contrib.Memory.csproj">
- <Project>{112b9a7c-29cc-4539-8f5a-45669c07cd4d}</Project>
- <Name>Contrib.Memory</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\..\src\core\Lucene.Net.csproj">
- <Project>{5d4ad9be-1ffb-41ab-9943-25737971bf57}</Project>
- <Name>Lucene.Net</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\core\Lucene.Net.Test.csproj">
- <Project>{aaf68bcf-f781-45fc-98b3-2b9cee411e01}</Project>
- <Name>Lucene.Net.Test</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Content Include="testqueries.txt">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="testqueries2.txt">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and
uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{66C13054-FF41-4C1D-BD0D-8DA009D1DFFD}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Lucene.Net.Index.Memory.Test</RootNamespace>
+ <AssemblyName>Lucene.Net.Contrib.Memory.Test</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\..\..\build\bin\contrib\Memory\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\..\..\build\bin\contrib\Memory\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="nunit.framework">
+ <HintPath>..\..\..\lib\NUnit.org\NUnit\2.5.9\bin\net-2.0\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ </ItemGroup>
+ <Choose>
+ <When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' ==
'') and '$(TargetFrameworkVersion)' == 'v3.5'">
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ </ItemGroup>
+ </When>
+ <Otherwise />
+ </Choose>
+ <ItemGroup>
+ <Compile Include="MemoryIndexTest.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\src\contrib\Memory\Contrib.Memory.csproj">
+ <Project>{112b9a7c-29cc-4539-8f5a-45669c07cd4d}</Project>
+ <Name>Contrib.Memory</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\..\src\core\Lucene.Net.csproj">
+ <Project>{5d4ad9be-1ffb-41ab-9943-25737971bf57}</Project>
+ <Name>Lucene.Net</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\core\Lucene.Net.Test.csproj">
+ <Project>{aaf68bcf-f781-45fc-98b3-2b9cee411e01}</Project>
+ <Name>Lucene.Net.Test</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="testqueries.txt">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="testqueries2.txt">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and
uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
\ No newline at end of file
Propchange: incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj
------------------------------------------------------------------------------
svn:eol-style = native
|