de.weltraumschaf.commons.system.NullExiter Maven / Gradle / Ivy
/*
* LICENSE
*
* "THE BEER-WARE LICENSE" (Revision 42):
* "Sven Strittmatter" wrote this file.
* As long as you retain this notice you can do whatever you want with
* this stuff. If we meet some day, and you think this stuff is worth it,
* you can buy me a beer in return.
*
*/
package de.weltraumschaf.commons.system;
/**
* Does nothing instead of calling {@link System#exit(int)}.
*
* Useful in tests where you don't want to exit the JVM.
*
* @author Sven Strittmatter
*/
public final class NullExiter extends ExitableAdapter {
@Override
public void exit(final int status) {
// Do nothing here.
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy