Commit cbe7981a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Minor optimization.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3712 b35dd754-fafc-0310-a699-88a17e54d16e
parent f2a21c83
......@@ -128,7 +128,8 @@ public class Group implements Cacheable {
* @param name the name for the group.
*/
public void setName(String name) {
if (provider.isReadOnly()) {
if (name == this.name || name.equals(this.name) || provider.isReadOnly()) {
// Do nothing
return;
}
try {
......@@ -169,6 +170,11 @@ public class Group implements Cacheable {
* @param description the description of the group.
*/
public void setDescription(String description) {
if (description == this.description || description.equals(this.description) ||
provider.isReadOnly()) {
// Do nothing
return;
}
try {
String originalDescription = this.description;
provider.setDescription(name, description);
......
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