private static RuntimeDialect resolveDialect ( ) { if ( getJavaVersion ( ) >= MINIMUM_VERSION_MODERN_JAVA ) { return new ModernJavaRuntime ( ) ; } else if ( "Android Runtime" . equalsIgnoreCase ( System . getProperty ( "java.runtime.name" ) ) ) { return new AndroidRuntime ( ) ; } else { return new LegacyJavaRuntime ( ) ; } }
Resolves the runtime dialect for the current VM .