package beaform.gui.formulaeditor;

import java.io.Serializable;
import java.util.Comparator;

import beaform.entities.FormulaTag;

/**
 * This class can compare Tag objects.
 *
 * @author steven
 *
 */
public class TagComparator implements Comparator<FormulaTag>, Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 6949518937805857985L;

	@Override
	public int compare(final FormulaTag firstTag, final FormulaTag secondTag) {
		return firstTag.getName().compareTo(secondTag.getName());
	}

}
@@ -282,14 +282,17 @@
 %09/**
-%0A%09 *%0A%09
+ A serial
  */%0A
@@ -360,16 +360,44 @@
 7985L;%0A%0A
+%09/**%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A
 %09@Overri
@@ -485,16 +485,29 @@
 %09return 
+compareNames(
 firstTag
@@ -520,42 +520,165 @@
 me()
-.compareTo(secondTag.getName()
+, secondTag.getName());%0A%09%7D%0A%0A%09private int compareNames(final String firstString, final String secondString) %7B%0A%09%09return firstString.compareTo(secondString
 );%0A%09%7D%0A%0A
-
 %7D
+%0A

Fix several PMD violations