And the default return value

This commit is contained in:
Nassim Jahnke 2022-08-11 19:09:33 +02:00
parent 47b15e5fef
commit e3dde71821
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -29,6 +29,10 @@ public abstract class AbstractProtocolDetectorService implements ProtocolDetecto
protected final Object2IntMap<String> detectedProtocolIds = new Object2IntOpenHashMap<>();
protected final ReadWriteLock lock = new ReentrantReadWriteLock();
protected AbstractProtocolDetectorService() {
detectedProtocolIds.defaultReturnValue(-1);
}
@Override
public int serverProtocolVersion(final String serverName) {
// Step 1. Check detected