Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#360 enum declaration causes RequireThis

release_4.0
closed
None
5
2012-10-10
2005-08-12
tim hood
No

The following code declares an enum in an interface.

Checkstyle reports ....

Require This: Reference to instance
variable 'DAY_OF_WEEK' needs "this.".

On TestRequireThisEnum.java at line 27

This doesn't seem correct does it ?

/
* Revision Identifier
*
* TestRequireThisEnum.java
* 12-Aug-2005 13:55:52 - HOOD

* $Id: TestRequireThisEnum.java 325 2005-08-12
13:09:06Z hood $

*/

package com.aeroint.phoenix.test;

/*
* This interface exists to check the issue raised in BUG
* http://a06044/CAGEBugTracker/show_bug.cgi?id=3.
*
* @author HOOD
/
public interface TestRequireThisEnum
{

/**
 * The days of the week as a enum.
 * 
 * @author HOOD
 */
enum DAY_OF_WEEK
{
    // CHECKSTYLE:OFF: JavadocVariable

    SUNDAY,

    MONDAY,

    TUESDAY,

    WEDNESDAY,

    THURSDAY,

    FRIDAY,

    SATURDAY

    // CHECKSTYLE:ON: JavadocVariable
}

}

Discussion

  • Logged In: YES
    user_id=746148

    Fix committed to cvs for 4.0