[#2761]ProtocolManager class's getCpProtocol()/getApProtocol() method' codes can be optimized.

This commit is contained in:
zongtanghu 2020-05-08 18:09:11 +08:00
parent 79a6f453d2
commit 27346a9f43

View File

@ -75,8 +75,8 @@ public class ProtocolManager
synchronized (this) {
if (!cpInit) {
initCPProtocol();
}
cpInit = true;
}
}
return cpProtocol;
}
@ -85,8 +85,8 @@ public class ProtocolManager
synchronized (this) {
if (!apInit) {
initAPProtocol();
}
apInit = true;
}
}
return apProtocol;
}