| {
private Class> preferredIpVersion = Inet4Address.class;
@@ -111,7 +112,7 @@ public class VmMgmt extends FreeMarkerConlet {
*
* @param event the event
*/
- @SuppressWarnings({ "unchecked" })
+ @SuppressWarnings({ "unchecked", "PMD.AvoidDuplicateLiterals" })
@Handler
public void onConfigurationUpdate(ConfigurationUpdate event) {
event.structured("/Manager/GuiHttpServer"
@@ -176,6 +177,7 @@ public class VmMgmt extends FreeMarkerConlet {
}
@Override
+ @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
protected Set doRenderConlet(RenderConletRequestBase> event,
ConsoleConnection channel, String conletId, VmsModel conletState)
throws Exception {
@@ -228,6 +230,7 @@ public class VmMgmt extends FreeMarkerConlet {
simplifiedVmDefinition(vmDef, user, roles)));
}
+ @SuppressWarnings("PMD.AvoidDuplicateLiterals")
private Map simplifiedVmDefinition(VmDefinition vmDef,
String user, List roles) {
// Convert RAM sizes to unitless numbers
@@ -267,8 +270,9 @@ public class VmMgmt extends FreeMarkerConlet {
* @throws IOException
*/
@Handler(namedChannels = "manager")
- @SuppressWarnings({ "PMD.CognitiveComplexity",
- "PMD.AvoidInstantiatingObjectsInLoops" })
+ @SuppressWarnings({ "PMD.ConfusingTernary", "PMD.CognitiveComplexity",
+ "PMD.AvoidInstantiatingObjectsInLoops", "PMD.AvoidDuplicateLiterals",
+ "PMD.ConfusingArgumentToVarargsMethod" })
public void onVmResourceChanged(VmResourceChanged event, VmChannel channel)
throws IOException {
var vmName = event.vmDefinition().name();
@@ -374,6 +378,8 @@ public class VmMgmt extends FreeMarkerConlet {
}
+ @SuppressWarnings({ "PMD.AvoidLiteralsInIfCondition",
+ "PMD.LambdaCanBeMethodReference" })
private Summary evaluateSummary(boolean force) {
if (!force && cachedSummary != null) {
return cachedSummary;
@@ -396,7 +402,8 @@ public class VmMgmt extends FreeMarkerConlet {
}
@Override
- @SuppressWarnings({ "PMD.NcssCount" })
+ @SuppressWarnings({ "PMD.AvoidDecimalLiteralsInBigDecimalConstructor",
+ "PMD.NcssCount" })
protected void doUpdateConletState(NotifyConletModel event,
ConsoleConnection channel, VmsModel model) throws Exception {
event.stop();
diff --git a/webpages/_includes/umami.html b/webpages/_includes/umami.html
deleted file mode 100644
index 8066278..0000000
--- a/webpages/_includes/umami.html
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/webpages/_layouts/vm-operator.html b/webpages/_layouts/vm-operator.html
index 40bdff7..b85f650 100644
--- a/webpages/_layouts/vm-operator.html
+++ b/webpages/_layouts/vm-operator.html
@@ -8,7 +8,6 @@
- {% include umami.html %}
|