changeset 65:653c4e04968b

minor changes
author cin
date Mon, 30 Jun 2014 13:55:22 +0400
parents a809805210d1
children 790e8a997d30
files Implab/Parsing/EnumAlphabet.cs Implab/Promise.cs
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Implab/Parsing/EnumAlphabet.cs	Wed Jun 25 04:44:53 2014 +0400
+++ b/Implab/Parsing/EnumAlphabet.cs	Mon Jun 30 13:55:22 2014 +0400
@@ -16,6 +16,7 @@
         static readonly T[] _symbols;
         static readonly EnumAlphabet<T> _fullAlphabet;
 
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
         static EnumAlphabet() {
             if (!typeof(T).IsEnum)
                 throw new InvalidOperationException("Invalid generic parameter, enumeration is required");
--- a/Implab/Promise.cs	Wed Jun 25 04:44:53 2014 +0400
+++ b/Implab/Promise.cs	Mon Jun 30 13:55:22 2014 +0400
@@ -607,7 +607,7 @@
             }
         }
 
-        protected virtual void OnStateChanged() {
+        void OnStateChanged() {
             HandlerDescriptor handler;
             while (m_handlers.TryDequeue(out handler))
                 InvokeHandler(handler);