OF-1126: Abstract implemenation should not change signature

The abstract implementation of GroupProvider should not hide the thrown
clause as defined by the createGroup() signature.
parent 279a998f
...@@ -90,7 +90,7 @@ public abstract class AbstractGroupProvider implements GroupProvider { ...@@ -90,7 +90,7 @@ public abstract class AbstractGroupProvider implements GroupProvider {
* @throws UnsupportedOperationException * @throws UnsupportedOperationException
*/ */
@Override @Override
public Group createGroup(String name) { public Group createGroup(String name) throws GroupAlreadyExistsException {
throw new UnsupportedOperationException("Cannot create groups via read-only provider"); throw new UnsupportedOperationException("Cannot create groups via read-only provider");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment