Added a getAbstractOption() method. I am going to change the design of this

class to improve the following:

- Not have protected member variables that are accessed directly. Checkstyle
  reports this error.

- By default the mOption member is not initialised to a default value. This is
  causing strange behaviour in the EmptyBlockCheck when no option is specified,
  as it does nothing. It should default to statement.
This commit is contained in:
Oliver Burn 2002-11-06 00:23:32 +00:00
parent c9bcfe0be0
commit 903f780d58
1 changed files with 10 additions and 0 deletions

View File

@ -44,4 +44,14 @@ public abstract class AbstractOptionCheck
throw new ConversionException("unable to parse " + aOption);
}
}
/**
* @return the <code>AbstractOption</code> set
*/
public AbstractOption getAbstractOption()
{
// WARNING!! Do not rename this method to getOption(). It breaks
// BeanUtils, which will silently not call setOption. Very annoying!
return mOption;
}
}