test_class.file: agent/core/src/test/java/org/glowroot/agent/PropertiesFilesTest.java
test_class.identifier: PropertiesFilesTest
test_case.body: @Test
      public void testUpgradeToCollectorAddressOnlyHostEmpty() {
          List<String> lines = ImmutableList.of("before=test", "collector.host=",
                  "collector.port=8181", "after=test");
          List<String> newLines = PropertiesFiles.upgradeToCollectorAddressIfNeeded(lines);
          assertThat(newLines).containsExactly("before=test", "collector.address=", "after=test");
      }
test_case.class_method_signature: PropertiesFilesTest.testUpgradeToCollectorAddressOnlyHostEmpty()
test_case.full_signature: @Test public void testUpgradeToCollectorAddressOnlyHostEmpty()
test_case.identifier: testUpgradeToCollectorAddressOnlyHostEmpty
test_case.invocations: of upgradeToCollectorAddressIfNeeded containsExactly assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpgradeToCollectorAddressOnlyHostEmpty()
focal_class.file: agent/core/src/main/java/org/glowroot/agent/PropertiesFiles.java
focal_class.identifier: PropertiesFiles
focal_class.class_method_signature: PropertiesFiles.PropertiesFiles()
focal_class.full_signature: private  PropertiesFiles()
focal_class.identifier: PropertiesFiles
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  PropertiesFiles()
focal_class.class_method_signature: PropertiesFiles.upgradeIfNeededAndLoadInto(File confDir, Map<String, String> properties)
focal_class.full_signature: static void upgradeIfNeededAndLoadInto(File confDir, Map<String, String> properties)
focal_class.identifier: upgradeIfNeededAndLoadInto
focal_class.modifiers: static
focal_class.parameters: (File confDir, Map<String, String> properties)
focal_class.return: void
focal_class.signature: void upgradeIfNeededAndLoadInto(File confDir, Map<String, String> properties)
focal_class.class_method_signature: PropertiesFiles.upgradeToCollectorAddressIfNeeded(File propFile)
focal_class.full_signature: private static void upgradeToCollectorAddressIfNeeded(File propFile)
focal_class.identifier: upgradeToCollectorAddressIfNeeded
focal_class.modifiers: private static
focal_class.parameters: (File propFile)
focal_class.return: void
focal_class.signature: void upgradeToCollectorAddressIfNeeded(File propFile)
focal_class.class_method_signature: PropertiesFiles.upgradeToCollectorAddressIfNeeded(List<String> lines)
focal_class.full_signature: @VisibleForTesting static List<String> upgradeToCollectorAddressIfNeeded(List<String> lines)
focal_class.identifier: upgradeToCollectorAddressIfNeeded
focal_class.modifiers: @VisibleForTesting static
focal_class.parameters: (List<String> lines)
focal_class.return: List<String>
focal_class.signature: List<String> upgradeToCollectorAddressIfNeeded(List<String> lines)
focal_class.class_method_signature: PropertiesFiles.addSchemeToCollectorAddressIfNeeded(File propFile)
focal_class.full_signature: private static void addSchemeToCollectorAddressIfNeeded(File propFile)
focal_class.identifier: addSchemeToCollectorAddressIfNeeded
focal_class.modifiers: private static
focal_class.parameters: (File propFile)
focal_class.return: void
focal_class.signature: void addSchemeToCollectorAddressIfNeeded(File propFile)
focal_class.class_method_signature: PropertiesFiles.addSchemeToCollectorAddressIfNeeded(List<String> lines)
focal_class.full_signature: private static List<String> addSchemeToCollectorAddressIfNeeded(List<String> lines)
focal_class.identifier: addSchemeToCollectorAddressIfNeeded
focal_class.modifiers: private static
focal_class.parameters: (List<String> lines)
focal_class.return: List<String>
focal_class.signature: List<String> addSchemeToCollectorAddressIfNeeded(List<String> lines)
focal_class.class_method_signature: PropertiesFiles.prependAgentRollupToAgentIdIfNeeded(File propFile)
focal_class.full_signature: private static void prependAgentRollupToAgentIdIfNeeded(File propFile)
focal_class.identifier: prependAgentRollupToAgentIdIfNeeded
focal_class.modifiers: private static
focal_class.parameters: (File propFile)
focal_class.return: void
focal_class.signature: void prependAgentRollupToAgentIdIfNeeded(File propFile)
focal_class.class_method_signature: PropertiesFiles.prependAgentRollupToAgentIdIfNeeded(List<String> lines)
focal_class.full_signature: private static List<String> prependAgentRollupToAgentIdIfNeeded(List<String> lines)
focal_class.identifier: prependAgentRollupToAgentIdIfNeeded
focal_class.modifiers: private static
focal_class.parameters: (List<String> lines)
focal_class.return: List<String>
focal_class.signature: List<String> prependAgentRollupToAgentIdIfNeeded(List<String> lines)
focal_class.class_method_signature: PropertiesFiles.readPropertiesFile(File propFile)
focal_class.full_signature: private static List<String> readPropertiesFile(File propFile)
focal_class.identifier: readPropertiesFile
focal_class.modifiers: private static
focal_class.parameters: (File propFile)
focal_class.return: List<String>
focal_class.signature: List<String> readPropertiesFile(File propFile)
focal_class.class_method_signature: PropertiesFiles.writePropertiesFile(File propFile, List<String> newLines)
focal_class.full_signature: private static void writePropertiesFile(File propFile, List<String> newLines)
focal_class.identifier: writePropertiesFile
focal_class.modifiers: private static
focal_class.parameters: (File propFile, List<String> newLines)
focal_class.return: void
focal_class.signature: void writePropertiesFile(File propFile, List<String> newLines)
focal_method.body: private static void upgradeToCollectorAddressIfNeeded(File propFile) throws IOException {
          List<String> lines = readPropertiesFile(propFile);
          List<String> newLines = upgradeToCollectorAddressIfNeeded(lines);
          if (!newLines.equals(lines)) {
              writePropertiesFile(propFile, newLines);
          }
      }
focal_method.class_method_signature: PropertiesFiles.upgradeToCollectorAddressIfNeeded(File propFile)
focal_method.full_signature: private static void upgradeToCollectorAddressIfNeeded(File propFile)
focal_method.identifier: upgradeToCollectorAddressIfNeeded
focal_method.invocations: readPropertiesFile upgradeToCollectorAddressIfNeeded equals writePropertiesFile
focal_method.modifiers: private static
focal_method.parameters: (File propFile)
focal_method.return: void
focal_method.signature: void upgradeToCollectorAddressIfNeeded(File propFile)