Skip to content

Instantly share code, notes, and snippets.

@runeflobakk
Created May 9, 2011 13:28
Show Gist options
  • Save runeflobakk/962518 to your computer and use it in GitHub Desktop.
Save runeflobakk/962518 to your computer and use it in GitHub Desktop.
Add this to your Wicket application class to limit Wicket dev mode warning to one per JVM instead of per test. Reduces clutter in build log.
private static boolean warnedAboutDevMode = false;
@Override
protected void outputDevelopmentModeWarning() {
if (warnedAboutDevMode) {
return;
}
super.outputDevelopmentModeWarning();
warnedAboutDevMode = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment