Update licence and Organize imports

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137331 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-05-22 22:00:06 +00:00
parent 2d97e55623
commit e7d21364b5
13 changed files with 37 additions and 26 deletions

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Broken color enumeration.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: Broken1Enum.java,v 1.1 2002/11/02 13:17:06 scolebourne Exp $
* @version $Id: Broken1Enum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class Broken1Enum extends Enum {
public static final Broken1Enum RED = new Broken1Enum("Red");

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Broken color enumeration.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: Broken2Enum.java,v 1.1 2002/11/02 13:17:06 scolebourne Exp $
* @version $Id: Broken2Enum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class Broken2Enum extends Enum {
public static final Broken2Enum RED = new Broken2Enum("Red");

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Broken color enumeration.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: Broken3Enum.java,v 1.1 2002/11/02 13:17:06 scolebourne Exp $
* @version $Id: Broken3Enum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class Broken3Enum extends Enum {
public static final Broken3Enum RED = new Broken3Enum("Red");

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Color enumeration.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: ColorEnum.java,v 1.1 2002/08/11 23:17:54 scolebourne Exp $
* @version $Id: ColorEnum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class ColorEnum extends Enum {

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -62,11 +62,12 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.commons.lang.SerializationUtils;
/**
* Test cases for the {@link Enum} class.
*
* @author Stephen Colebourne
* @version $Id: EnumTest.java,v 1.6 2003/02/04 18:30:08 scolebourne Exp $
* @version $Id: EnumTest.java,v 1.7 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class EnumTest extends TestCase {

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -57,11 +57,12 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
/**
* Test suite for the Enum package.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: EnumTestSuite.java,v 1.1 2002/08/11 23:17:54 scolebourne Exp $
* @version $Id: EnumTestSuite.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public class EnumTestSuite extends TestCase {

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -65,7 +65,7 @@ import junit.framework.TestSuite;
* Test cases for the {@link Enum} class.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: EnumUtilsTest.java,v 1.2 2003/04/08 23:45:16 ggregory Exp $
* @version $Id: EnumUtilsTest.java,v 1.3 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class EnumUtilsTest extends TestCase {

View File

@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Base extended enumeration.
*
* @author Stephen Colebourne
* @version $Id: Extended1Enum.java,v 1.1 2003/02/04 18:30:08 scolebourne Exp $
* @version $Id: Extended1Enum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public class Extended1Enum extends Enum {
public static final Extended1Enum ALPHA = new Extended1Enum("Alpha");

View File

@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Extended enumeration.
*
* @author Stephen Colebourne
* @version $Id: Extended2Enum.java,v 1.1 2003/02/04 18:30:08 scolebourne Exp $
* @version $Id: Extended2Enum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public class Extended2Enum extends Extended1Enum {
public static final Extended1Enum GAMMA = new Extended2Enum("Gamma");

View File

@ -53,15 +53,15 @@
*/
package org.apache.commons.lang.enum;
import java.util.Map;
import java.util.List;
import java.lang.String;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Extended enumeration.
*
* @author Stephen Colebourne
* @version $Id: Extended3Enum.java,v 1.1 2003/02/04 18:30:08 scolebourne Exp $
* @version $Id: Extended3Enum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public class Extended3Enum extends Extended2Enum {
public static final Extended1Enum DELTA = new Extended3Enum("Delta");

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Operator enumeration.
*
* @author Stephen Colebourne
* @version $Id: OperationEnum.java,v 1.1 2002/12/31 22:39:39 scolebourne Exp $
* @version $Id: OperationEnum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public abstract class OperationEnum extends Enum {
public static final OperationEnum PLUS = new OperationEnum("Plus") {

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,11 +56,12 @@ package org.apache.commons.lang.enum;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Color enumeration.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: ValuedColorEnum.java,v 1.1 2002/08/11 23:17:54 scolebourne Exp $
* @version $Id: ValuedColorEnum.java,v 1.2 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class ValuedColorEnum extends ValuedEnum {

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -62,11 +62,12 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.commons.lang.SerializationUtils;
/**
* Test cases for the {@link Enum} class.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: ValuedEnumTest.java,v 1.2 2002/10/13 18:42:06 sullis Exp $
* @version $Id: ValuedEnumTest.java,v 1.3 2003/05/22 22:00:06 scolebourne Exp $
*/
public final class ValuedEnumTest extends TestCase {