mirror of https://github.com/apache/druid.git
minor fixes
This commit is contained in:
parent
3752122a7b
commit
c58fbfe40c
|
@ -111,9 +111,12 @@ public class Initialization
|
||||||
*/
|
*/
|
||||||
public static<T> Set<T> getLoadedModules(Class<T> clazz)
|
public static<T> Set<T> getLoadedModules(Class<T> clazz)
|
||||||
{
|
{
|
||||||
return extensionsMap.get(clazz);
|
Set<T> retVal = extensionsMap.get(clazz);
|
||||||
|
if (retVal == null) {
|
||||||
|
return Sets.newHashSet();
|
||||||
|
}
|
||||||
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public synchronized static <T> Collection<T> getFromExtensions(ExtensionsConfig config, Class<T> clazz)
|
public synchronized static <T> Collection<T> getFromExtensions(ExtensionsConfig config, Class<T> clazz)
|
||||||
{
|
{
|
||||||
|
|
|
@ -148,7 +148,7 @@ public class StatusResource
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
if (artifact.isEmpty()) {
|
if (artifact == null || artifact.isEmpty()) {
|
||||||
return String.format(" - %s ", name);
|
return String.format(" - %s ", name);
|
||||||
} else {
|
} else {
|
||||||
return String.format(" - %s (%s-%s)", name, artifact, version);
|
return String.format(" - %s (%s-%s)", name, artifact, version);
|
||||||
|
@ -194,6 +194,5 @@ public class StatusResource
|
||||||
{
|
{
|
||||||
return usedMemory;
|
return usedMemory;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue