Marked all static classes as static.

This commit is contained in:
jfrijters 2008-06-03 07:13:49 +00:00
Родитель c5dcd8dc53
Коммит cbeeb20318
6 изменённых файлов: 13 добавлений и 17 удалений

Просмотреть файл

@ -81,7 +81,7 @@ namespace IKVM.Internal
private string signature;
private string[] enclosingMethod;
private class SupportedVersions
private static class SupportedVersions
{
internal static readonly int Minimum = 45;
internal static readonly int Maximum = 50;

Просмотреть файл

@ -867,7 +867,7 @@ namespace IKVM.Internal
}
#if !COMPACT_FRAMEWORK
private class NonvirtualInvokeHelper
private static class NonvirtualInvokeHelper
{
private static Hashtable cache;
private static ModuleBuilder module;

Просмотреть файл

@ -51,13 +51,11 @@ namespace IKVM.Internal
}
#if !COMPACT_FRAMEWORK
class EmitHelper
static class EmitHelper
{
private static MethodInfo objectToString = typeof(object).GetMethod("ToString", BindingFlags.Public | BindingFlags.Instance, null, Type.EmptyTypes, null);
private static MethodInfo verboseCastFailure = JVM.SafeGetEnvironmentVariable("IKVM_VERBOSE_CAST") == null ? null : ByteCodeHelperMethods.VerboseCastFailure;
static EmitHelper() {}
internal static void Throw(ILGenerator ilgen, string dottedClassName)
{
TypeWrapper exception = ClassLoaderWrapper.GetBootstrapClassLoader().LoadClassByDottedName(dottedClassName);
@ -128,7 +126,7 @@ namespace IKVM.Internal
}
#endif
class AttributeHelper
static class AttributeHelper
{
#if !COMPACT_FRAMEWORK
private static CustomAttributeBuilder hideFromJavaAttribute;
@ -3549,7 +3547,7 @@ namespace IKVM.Internal
}
#if !COMPACT_FRAMEWORK
class BakedTypeCleanupHack
static class BakedTypeCleanupHack
{
private static readonly FieldInfo m_methodBuilder = typeof(ConstructorBuilder).GetField("m_methodBuilder", BindingFlags.Instance | BindingFlags.NonPublic);
private static readonly FieldInfo[] methodBuilderFields = GetFieldList(typeof(MethodBuilder), new string[]
@ -7410,7 +7408,7 @@ namespace IKVM.Internal
}
#if !STATIC_COMPILER
internal class JniProxyBuilder
internal static class JniProxyBuilder
{
private static ModuleBuilder mod;
private static int count;
@ -7462,7 +7460,7 @@ namespace IKVM.Internal
}
#endif // !STATIC_COMPILER
private class JniBuilder
private static class JniBuilder
{
#if STATIC_COMPILER
private static readonly Type localRefStructType = StaticCompiler.GetType("IKVM.Runtime.JNI+Frame");
@ -7674,7 +7672,7 @@ namespace IKVM.Internal
}
}
class TraceHelper
private static class TraceHelper
{
#if STATIC_COMPILER
private readonly static MethodInfo methodIsTracedMethod = typeof(Tracer).GetMethod("IsTracedMethod");

Просмотреть файл

@ -39,7 +39,7 @@ using ExceptionTableEntry = IKVM.Internal.ClassFile.Method.ExceptionTableEntry;
using LocalVariableTableEntry = IKVM.Internal.ClassFile.Method.LocalVariableTableEntry;
using Instruction = IKVM.Internal.ClassFile.Method.Instruction;
class ByteCodeHelperMethods
static class ByteCodeHelperMethods
{
internal static readonly MethodInfo GetClassFromTypeHandle;
internal static readonly MethodInfo multianewarray;

Просмотреть файл

@ -121,7 +121,7 @@ using ssaGetPropertyAction = sun.security.action.GetPropertyAction;
using sndResolverConfigurationImpl = sun.net.dns.ResolverConfigurationImpl;
#endif
sealed class DynamicMethodSupport
static class DynamicMethodSupport
{
// MONOBUG as of Mono 1.2.5.1, DynamicMethod is too broken to be used
internal static readonly bool Enabled = IsFullTrust && Type.GetType("Mono.Runtime") == null;
@ -885,7 +885,7 @@ namespace IKVM.NativeCode.java
}
}
sealed class VirtualFileSystem
static class VirtualFileSystem
{
internal static readonly string RootPath = JVM.IsUnix ? "/.virtual-ikvm-home/" : @"C:\.virtual-ikvm-home\";

Просмотреть файл

@ -35,10 +35,8 @@ using IKVM.Internal;
#if !STATIC_COMPILER && !COMPACT_FRAMEWORK
namespace IKVM.Internal
{
public sealed class Starter
public static class Starter
{
private Starter() {}
public static void PrepareForSaveDebugImage()
{
JVM.IsSaveDebugImage = true;
@ -66,7 +64,7 @@ namespace IKVM.Internal
namespace IKVM.Internal
{
class JVM
static class JVM
{
#if STATIC_COMPILER
internal const bool IsStaticCompiler = true;