Spelling fixes
This commit is contained in:
parent
a844c680a3
commit
0ddd80b0c9
|
@ -123,7 +123,7 @@ public class LWJGLInstaller {
|
||||||
}
|
}
|
||||||
|
|
||||||
// create a temporary dir for the native files
|
// create a temporary dir for the native files
|
||||||
String user_temp_dir = getPriveledgedString("java.io.tmpdir");
|
String user_temp_dir = getPriviledgedString("java.io.tmpdir");
|
||||||
String path = createTemporaryDir(user_temp_dir);
|
String path = createTemporaryDir(user_temp_dir);
|
||||||
if(path == null) {
|
if(path == null) {
|
||||||
throw new LWJGLException("Failed creation of temporary directory in " + user_temp_dir);
|
throw new LWJGLException("Failed creation of temporary directory in " + user_temp_dir);
|
||||||
|
@ -251,7 +251,7 @@ public class LWJGLInstaller {
|
||||||
/**
|
/**
|
||||||
* Gets a property as a privileged action.
|
* Gets a property as a privileged action.
|
||||||
*/
|
*/
|
||||||
private static String getPriveledgedString(final String property) {
|
private static String getPriviledgedString(final String property) {
|
||||||
return (String) AccessController.doPrivileged(new PrivilegedAction() {
|
return (String) AccessController.doPrivileged(new PrivilegedAction() {
|
||||||
public Object run() {
|
public Object run() {
|
||||||
return System.getProperty(property);
|
return System.getProperty(property);
|
||||||
|
|
|
@ -75,7 +75,7 @@ final class AWTSurfaceLock {
|
||||||
|
|
||||||
private boolean privilegedLockAndInitHandle(final Canvas canvas) throws LWJGLException {
|
private boolean privilegedLockAndInitHandle(final Canvas canvas) throws LWJGLException {
|
||||||
// Workaround for Sun JDK bug 4796548 which still exists in java for OS X
|
// Workaround for Sun JDK bug 4796548 which still exists in java for OS X
|
||||||
// We need to elevate priveleges because of an AWT bug. Please see
|
// We need to elevate privileges because of an AWT bug. Please see
|
||||||
// http://192.18.37.44/forums/index.php?topic=10572 for a discussion.
|
// http://192.18.37.44/forums/index.php?topic=10572 for a discussion.
|
||||||
// It is only needed on first call, so we avoid it on all subsequent calls
|
// It is only needed on first call, so we avoid it on all subsequent calls
|
||||||
// due to performance.
|
// due to performance.
|
||||||
|
|
Loading…
Reference in New Issue