Added some comments on why return empty model in cache

This commit is contained in:
nsingh
2018-08-30 12:40:25 +02:00
parent 0ffeac4066
commit 997e9a0383

View File

@@ -230,6 +230,8 @@ public abstract class AbstractSpringBootApp implements SpringBootApp {
return cachedBeansModel;
} else {
// PT 160096886 - Don't throw exception, as actuator info will not be available when app stopping, and
// this is not an error condition. Return empty model instead.
return LiveBeansModel.builder().build();
}