reverted changes made in r1661
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1663 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -41,14 +41,6 @@ public class RunAnywhere
|
|||||||
return _isLinux;
|
return _isLinux;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the string value of the OS version reported by the JVM
|
|
||||||
*/
|
|
||||||
public static final String getOSVersion ()
|
|
||||||
{
|
|
||||||
return _osversion;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns {@link System#currentTimeMillis}, but works around a bug on
|
* Returns {@link System#currentTimeMillis}, but works around a bug on
|
||||||
* WinXP that causes time to sometimes leap into the past.
|
* WinXP that causes time to sometimes leap into the past.
|
||||||
@@ -100,9 +92,6 @@ public class RunAnywhere
|
|||||||
* is first loaded. */
|
* is first loaded. */
|
||||||
protected static boolean _isLinux;
|
protected static boolean _isLinux;
|
||||||
|
|
||||||
/** The version number that our OS reports */
|
|
||||||
protected static String _osversion;
|
|
||||||
|
|
||||||
/** Used to ensure that the timer is sane. */
|
/** Used to ensure that the timer is sane. */
|
||||||
protected static long _lastStamp, _lastWarning;
|
protected static long _lastStamp, _lastWarning;
|
||||||
|
|
||||||
@@ -114,8 +103,6 @@ public class RunAnywhere
|
|||||||
_isMacOS = (osname.indexOf("Mac OS") != -1 ||
|
_isMacOS = (osname.indexOf("Mac OS") != -1 ||
|
||||||
osname.indexOf("MacOS") != -1);
|
osname.indexOf("MacOS") != -1);
|
||||||
_isLinux = (osname.indexOf("Linux") != -1);
|
_isLinux = (osname.indexOf("Linux") != -1);
|
||||||
|
|
||||||
_osversion = System.getProperty("os.version");
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// dang, can't grab system properties; we'll just pretend
|
// dang, can't grab system properties; we'll just pretend
|
||||||
// we're not on any of these OSes
|
// we're not on any of these OSes
|
||||||
|
|||||||
Reference in New Issue
Block a user