From b86622b849af9b23c623a114f4fc2110e452529c Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Sat, 27 Oct 2018 00:39:13 +0300 Subject: [PATCH] Improve comments --- .../velocitypowered/proxy/config/AnnotatedConfig.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java b/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java index 4cce31526..6c1dc1fd1 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java @@ -121,18 +121,18 @@ public abstract class AnnotatedConfig { // Check if field is table. Table table = field.getAnnotation(Table.class); if (table != null) { - lines.add(table.value()); // Write [name] - lines.addAll(dumpConfig(field.get(dumpable))); // dump fields of table + lines.add(table.value()); // Write [name] + lines.addAll(dumpConfig(field.get(dumpable))); // Dump fields of table continue; } - if (field.getAnnotation(IsMap.class) != null) { // check if field is map + if (field.getAnnotation(IsMap.class) != null) { // Check if field is a map @SuppressWarnings("unchecked") Map map = (Map) field.get(dumpable); for (Entry entry : map.entrySet()) { lines.add(entry.getKey() + " = " + serialize(entry.getValue())); // Save map data } - lines.add(""); //Add empty line + lines.add(""); // Add empty line continue; } @@ -145,7 +145,7 @@ public abstract class AnnotatedConfig { // Save field to config lines.add(name + " = " + serialize(value)); - lines.add(""); // add empty line + lines.add(""); // Add empty line } } catch (IllegalAccessException | IllegalArgumentException | SecurityException e) { throw new RuntimeException("Could not dump configuration", e);