int (int priority) { if (priority == AntBuildMessageView.PRIORITY_ERR || priority == AntBuildMessageView.PRIORITY_WARN || priority == AntBuildMessageView.PRIORITY_INFO || priority == AntBuildMessageView.PRIORITY_VERBOSE || priority == AntBuildMessageView.PRIORITY_DEBUG) { return priority; } return AntBuildMessageView.PRIORITY_VERBOSE; // fallback value for unknown priority value }