Use isEmpty

This commit is contained in:
Nikolay Martynov 2020-02-27 15:46:39 +01:00
parent 70bed6f4ac
commit 6e10eee6ee
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ public class FieldBackedProvider implements InstrumentationContextProvider {
@Override @Override
public AgentBuilder.Identified.Extendable instrumentationTransformer( public AgentBuilder.Identified.Extendable instrumentationTransformer(
AgentBuilder.Identified.Extendable builder) { AgentBuilder.Identified.Extendable builder) {
if (instrumenter.contextStore().size() > 0) { if (!instrumenter.contextStore().isEmpty()) {
/* /*
* Install transformer that rewrites accesses to context store with specialized bytecode that * Install transformer that rewrites accesses to context store with specialized bytecode that
* invokes appropriate storage implementation. * invokes appropriate storage implementation.