This promotes retrofitted isDefault() and setDefault() methods
to be properly required, addressing the associated FIXME.
Change-Id: Ibc958ce02c36a317f9b6f4c04632a3d6cecf0f7c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*
* @return <code>true</code> if the method signature is defined as default.
*/
- // FIXME: 4.0.0: make this method non-default
- default boolean isDefault() {
- return false;
- }
+ boolean isDefault();
/**
* Returns the List of parameters that method declare. If the method does not contain any parameters, the method
* @param isDefault true if this signature is to represent a default method.
* @return this builder
*/
- // FIXME: 4.0.0: make this method non-default
- default MethodSignatureBuilder setDefault(final boolean isDefault) {
- throw new UnsupportedOperationException(getClass() + " does not override setDefault");
- }
+ MethodSignatureBuilder setDefault(boolean isDefault);
/**
* Adds Parameter into the List of method parameters. Neither the Name or Type of parameter can be {@code null}.