All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devonfw.tools.ide.migrator.xml.AbstractXmlMigration Maven / Gradle / Ivy

Go to download

Code for configurator the creates or updates configuration of IDEs (Eclipse, etc.).

There is a newer version: 3.0.0-beta25
Show newest version
package com.devonfw.tools.ide.migrator.xml;

/**
 * Base class for implementations of {@link XmlMigration}.
 */
public abstract class AbstractXmlMigration extends AbstractXmlSupport implements XmlMigration {

  /**
   * Constant for single space
   */
  public static final String SINGLE_SPACE = " ";

  /**
   * @param str the {@link String} to trim.
   * @return trim and single space string
   */
  public static String removeSpaces(String str) {

    return str.trim().replaceAll("\\s+", SINGLE_SPACE);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy