} catch (IOException e) {
bulkWatch.stop("Failed to indes active rules");
throw new IllegalStateException("Unable to index active rules", e);
- } finally {
}
}
public void save(ActiveRuleDto activeRule, Collection<ActiveRuleParamDto> params) {
try {
- esIndex.putSynchronous(RuleRegistry.INDEX_RULES, ESActiveRule.TYPE_ACTIVE_RULE, Long.toString(activeRule.getId()), activeRuleDocument(activeRule, params), Long.toString(activeRule.getRulId()));
+ esIndex.putSynchronous(RuleRegistry.INDEX_RULES, ESActiveRule.TYPE_ACTIVE_RULE, Long.toString(activeRule.getId()), activeRuleDocument(activeRule, params),
+ Long.toString(activeRule.getRulId()));
} catch (IOException ioexception) {
throw new IllegalStateException("Unable to index active rule with id=" + activeRule.getId(), ioexception);
}
display_title = true;
}
- var url = baseUrl + '/resource/index/' + resourceId + '?tab=' + tab + '&display_title=' + display_title + '&period=' + period;
+ var url = baseUrl + '/resource/index/' + resourceId + '?tab=' + tab + '&display_title=' + display_title
+ + '&period=' + period;
openAccordionItem(url, elt, true);
return false;
// Display GWT component
function loadGWT(gwtId, resourceId, resourceKey, resourceName, resourceScope, resourceQualifier, resourceLanguage) {
config["resource"] = [
- {"id":resourceId, "key":resourceKey, "name":resourceName, "scope":resourceScope, "qualifier":resourceQualifier, "lang":resourceLanguage}
+ {"id":resourceId, "key":resourceKey, "name":resourceName, "scope":resourceScope, "qualifier":resourceQualifier,
+ "lang":resourceLanguage}
];
config["resource_key"] = resourceId;
modules[gwtId]();
import org.sonar.wsclient.rule.RuleTagClient;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@Override
@SuppressWarnings("unchecked")
public Collection<String> list() {
- String json = requestFactory.get(LIST_URL, null);
+ String json = requestFactory.get(LIST_URL, Collections.<String, Object> emptyMap());
return (Collection<String>) JSONValue.parse(json);
}