mirror of https://github.com/apache/cassandra
Restore JDK 8 compatibility in the reflective class-loading tests
ClassLoadingTestDiagnosticEvent used Map.of(), which is unavailable on JDK 8; use Collections.emptyMap() instead.
This commit is contained in:
parent
af8410a0cf
commit
753546b83b
|
|
@ -19,6 +19,7 @@
|
|||
package org.apache.cassandra.diag;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -39,6 +40,6 @@ public final class ClassLoadingTestDiagnosticEvent extends DiagnosticEvent
|
|||
@Override
|
||||
public Map<String, Serializable> toMap()
|
||||
{
|
||||
return Map.of();
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue