You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2015/12/08 14:17:55 UTC

[17/19] ignite git commit: wip

wip


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

Branch: refs/heads/ignite-1694
Commit: c9e37195a17522dbb59c2c3f6cdd25f50ac886c3
Parents: 036be93
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Thu Nov 12 11:53:45 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Thu Nov 12 11:53:45 2015 +0300

----------------------------------------------------------------------
 modules/platforms/dotnet/Apache.Ignite.FxCop | 221 ----------------------
 1 file changed, 221 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c9e37195/modules/platforms/dotnet/Apache.Ignite.FxCop
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.FxCop b/modules/platforms/dotnet/Apache.Ignite.FxCop
index fddb1c8..0df73c5 100644
--- a/modules/platforms/dotnet/Apache.Ignite.FxCop
+++ b/modules/platforms/dotnet/Apache.Ignite.FxCop
@@ -386,220 +386,6 @@
        </Namespace>
        <Namespace Name="Apache.Ignite.Core.Impl.Unmanaged">
         <Types>
-         <Type Name="IgniteJniNativeMethods">
-          <Members>
-           <Member Name="#AtomicLongIsClosed(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.AtomicLongIsClosed(void*, void*)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#CacheSize(System.Void*,System.Void*,System.Int32,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'loc'</Item>
-               <Item>'IgniteJniNativeMethods.CacheSize(void*, void*, int, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#CacheTryEnterLock(System.Void*,System.Void*,System.Int64,System.Int64)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.CacheTryEnterLock(void*, void*, long, long)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#CreateContext(System.Void*,System.Int32,System.Void*)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.CreateContext(void*, int, void*)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.CreateContext(void*, int, void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.CreateContext(void*, int, void*)'&#xD;&#xA;   -&gt;'IgniteManager.CreateJvm(IgniteConfiguration, UnmanagedCallbacks)'&#xD;&#xA;   -&gt;'IgniteManager.CreateJvmContext(IgniteConfiguration, UnmanagedCallbacks)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerAllowOverwriteGet(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.DataStreamerAllowOverwriteGet(void*, void*)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerAllowOverwriteSet(System.Void*,System.Void*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'val'</Item>
-               <Item>'IgniteJniNativeMethods.DataStreamerAllowOverwriteSet(void*, void*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerSkipStoreGet(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.DataStreamerSkipStoreGet(void*, void*)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerSkipStoreSet(System.Void*,System.Void*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'val'</Item>
-               <Item>'IgniteJniNativeMethods.DataStreamerSkipStoreSet(void*, void*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DestroyJvm(System.Void*)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.DestroyJvm(void*)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.DestroyJvm(void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.DestroyJvm(void*)'&#xD;&#xA;   -&gt;'IgniteManager.DestroyJvm()'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#EventsIsEnabled(System.Void*,System.Void*,System.Int32)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.EventsIsEnabled(void*, void*, int)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#EventsStopLocalListen(System.Void*,System.Void*,System.Int64)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.EventsStopLocalListen(void*, void*, long)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#HandlersSize()">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.HandlersSize()'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.HandlersSize()'&#xD;&#xA;   -&gt;'UnmanagedUtils.HandlersSize()'&#xD;&#xA;   -&gt;'UnmanagedCallbacks.UnmanagedCallbacks()'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#IgnitionStart(System.Void*,System.SByte*,System.SByte*,System.Int32,System.Int64)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStart(void*, sbyte*, sbyte*, int, long)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStart(void*, sbyte*, sbyte*, int, long)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStart(UnmanagedContext, string, string, bool)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#IgnitionStop(System.Void*,System.SByte*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'cancel'</Item>
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-              </Issue>
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-              </Issue>
-             </Message>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignite.Stop(bool)'&#xD;&#xA;   -&gt;'Ignition.Stop(string, bool)'</Item>
-              </Issue>
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignite.Stop(bool)'&#xD;&#xA;   -&gt;'Ignition.StopAll(bool)'</Item>
-              </Issue>
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#IgnitionStopAll(System.Void*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'cancel'</Item>
-               <Item>'IgniteJniNativeMethods.IgnitionStopAll(void*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ProcessorAtomicLong(System.Void*,System.Void*,System.SByte*,System.Int64,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'create'</Item>
-               <Item>'IgniteJniNativeMethods.ProcessorAtomicLong(void*, void*, sbyte*, long, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ProcessorDataStreamer(System.Void*,System.Void*,System.SByte*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'keepBinary'</Item>
-               <Item>'IgniteJniNativeMethods.ProcessorDataStreamer(void*, void*, sbyte*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ProcessorReleaseStart(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.ProcessorReleaseStart(void*, void*)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.ProcessorReleaseStart(void*, void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.ProcessorReleaseStart(IUnmanagedTarget)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ServicesGetServiceProxy(System.Void*,System.Void*,System.Char*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'sticky'</Item>
-               <Item>'IgniteJniNativeMethods.ServicesGetServiceProxy(void*, void*, char*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#TxSetRollbackOnly(System.Void*,System.Void*,System.Int64)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.TxSetRollbackOnly(void*, void*, long)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-          </Members>
-         </Type>
          <Type Name="UnmanagedUtils">
           <Members>
            <Member Name="#.cctor()">
@@ -635,13 +421,6 @@
    <Rule TypeName="InitializeReferenceTypeStaticFieldsInline" Category="Microsoft.Performance" CheckId="CA1810">
     <Resolution Name="Default">Initialize all static fields in {0} when those fields are declared and remove the explicit static constructor.</Resolution>
    </Rule>
-   <Rule TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414">
-    <Resolution Name="Default">Add the MarshalAsAttribute to parameter {0} of P/Invoke {1}. If the corresponding unmanaged parameter is a 4-byte Win32 'BOOL', use [MarshalAs(UnmanagedType.Bool)]. For a 1-byte C++ 'bool', use MarshalAs(UnmanagedType.U1).</Resolution>
-    <Resolution Name="Return">Add the MarshalAsAttribute to the return type of P/Invoke {0}. If the corresponding unmanaged return type is a 4-byte Win32 'BOOL', use MarshalAs(UnmanagedType.Bool). For a 1-byte C++ 'bool', use MarshalAs(UnmanagedType.U1).</Resolution>
-   </Rule>
-   <Rule TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118">
-    <Resolution Name="PlatformInvokeStack">Review declarative security for {0} and its callers for potential vulnerabilities. The following call stack might expose a way to circumvent security protection: {1}</Resolution>
-   </Rule>
    <Rule TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305">
     <Resolution Name="Default">Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.</Resolution>
    </Rule>