*/
package org.sonar.server.rule;
-import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
return true;
}
- @VisibleForTesting
- boolean update(RuleUpdate update, UserSession userSession) {
- DbSession dbSession = dbClient.openSession(false);
- try {
- return update(dbSession, update, userSession);
- } finally {
- dbClient.closeSession(dbSession);
- }
- }
-
/**
* Load all the DTOs required for validating changes and updating rule
*/