Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#652 expecting EOF, found Error

SVN_Head
closed
Oliver Burn
Other (70)
5
2013-10-27
2011-08-24
Bjoern Kimminich
No

For the following code the Eclipse Checkstyle Plug-in 5.3.0.201012121300 reports a strange error in line 6:

Folgende Ausnahme ist aufgetreten - expecting EOF, found 'getterMethod'


public static Method findGetterMethod(Class<?> beanClass, String propertyName, Class<?> propertyType) {
    String getterName = "get" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
    Method getterMethod = findMethod(beanClass, getterName, new Class[] {}, propertyType);
    if (getterMethod == null && (boolean.class.equals(propertyType) || Boolean.class.equals(propertyType))) {
        getterName = "is" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
        getterMethod = findMethod(beanClass, getterName, new Class[] {}, propertyType);
    }
    return getterMethod;
}

Screenshot attached.

Discussion

  • Screenshot of LOC with strange error

     
    Attachments
  • Roman Ivanov
    Roman Ivanov
    2013-10-27

    • status: open --> closed