/** * Logs a warning that the deterministic random feature is not supported by the * JVM. */ private static void logWarningNotSupported() { if (!(warningNotSupportedLogged || System.getProperty("RANDOMSEED", "none").equals("none"))) { logWarning("The deterministic random generator feature is not supported by this JVM:\n" + System.getProperty("java.vm.vendor") + " " + System.getProperty("java.vm.name") + " " + System.getProperty("java.vm.version")); warningNotSupportedLogged = true; } } }
public void saveWindowPositions() { FileOutputStream out = null; try { out = new FileOutputStream(FileUtil.getWindowConfigFile()); getWindowPositions().store(out, "Robocode window sizes"); } catch (IOException e) { Logger.logWarning("Unable to save window positions: " + e); } finally { if (out != null) { try { out.close(); } catch (IOException ignored) {} } } }
public void cleanup() { try { if (runThread == null || !runThread.isAlive()) { if (!discardAWT()) { runThreadGroup.destroy(); } } else { Logger.logWarning("Could not destroy " + runThread.getName()); } } catch (Exception e) { Logger.logError("Could not destroy " + runThreadGroup.getName(), e); } }
Logger.logWarning(file + " may be a symlink. Ignoring."); Logger.logWarning("Cannot determine canonical file for " + file + ". Ignoring.");
logWarning("Getting version from file"); return getVersionFromFile();
/** * @param t thread to stop * @return 0 as peaceful stop */ private int stopSteps(Thread t) { if (t != null && t.isAlive()) { interrupt(t); if (t.isAlive()) { stop(t); } if (t.isAlive()) { // noinspection deprecation // t.suspend(); logWarning("Unable to stop thread: " + runThread.getName()); } else { logMessage(robotProxy.getStatics().getName() + " has been stopped."); } return 1; } return 0; }
Logger.logWarning(nosecMessage); Logger.logWarning(exMessage);