in src/main/java/org/apache/sling/commons/threads/impl/ExtendedThreadFactory.java [74:87]
private int convertPriority(final ThreadPoolConfig.ThreadPriority priority) {
if (priority == null) {
throw new IllegalStateException("Prioriy must not be null.");
}
switch (priority) {
case MIN :
return Thread.MIN_PRIORITY;
case MAX :
return Thread.MAX_PRIORITY;
case NORM :
default: // this can never happen
return Thread.NORM_PRIORITY;
}
}