/*
 * Copyright (C) 2004-2006  exedio GmbH (www.exedio.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package com.exedio.cope.util;

import java.util.Comparator;

public final class ClassComparator implements Comparator
{
	private static final ClassComparator instance = new ClassComparator();

	public static final ClassComparator getInstance()
	{
		return instance;
	}

	private ClassComparator()
	{
	}

	public int compare(Object o1, Object o2)
	{
		final Class c1 = (Class)o1;
		final Class c2 = (Class)o2;
		return c1.getName().compareTo(c2.getName());
	}
}

@@ -914,16 +914,23 @@
 mparator
+%3CClass%3E
 %0A%7B%0A%09priv
@@ -1132,65 +1132,24 @@
 are(
-Object o1, Object o2)%0A%09%7B%0A%09%09final Class c1 = (Class)o1;%0A%09%09
+final Class c1, 
 fina
@@ -1162,21 +1162,12 @@
 s c2
- = (Class)o2;
+)%0A%09%7B
 %0A%09%09r

use generics