Showing 4,841 of 7,782 total issues
Method execNonComponent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final void execNonComponent(CreateInfo ci, Component comp, Object meta) {
final Page page = ci.page;
if (meta instanceof AttributesInfo) {
final AttributesInfo attrs = (AttributesInfo) meta;
if (comp != null)
Method create
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Component[] create(Component parent, Component insertBefore, VariableResolver resolver,
Composer composer) {
final Execution exec = Executions.getCurrent();
final ExecutionCtrl execCtrl = (ExecutionCtrl) exec;
final Component[] cs;
Method doBeforeComposeChildren
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void doBeforeComposeChildren(final Component comp) throws Exception {
//ZK-3831
if (comp.getPage() == null) {
final Map<?, ?> currentArg = Executions.getCurrent().getArg();
((ComponentCtrl) comp).addCallback(ComponentCtrl.AFTER_PAGE_ATTACHED, new Callback() {
Method getValidator
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Validator getValidator(String name) {
checkInit();
Validator validator = null;
if (_hasGetValidatorMethod) {
Object vm = getViewModel();
Method addFormAssociatedSaveBinding
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void addFormAssociatedSaveBinding(Component associatedComp, String formId, SaveBinding saveBinding,
String fieldName) {
checkInit();
//find the form component by form id and a associated/nested component
Component formComp = lookupAssociatedFormComponent(formId, associatedComp);
Method initRendererIfAny
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void initRendererIfAny(Component comp, String attr) {
final Object installed = comp.getAttribute(BinderCtrl.RENDERER_INSTALLED);
if (installed != null) { //renderer was set already init
return;
}
Method getConverter
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Converter getConverter(String name) {
checkInit();
Converter converter = null;
if (_hasGetConverterMethod) {
Object vm = getViewModel();
Method getLoadBindingsPerProperty
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void getLoadBindingsPerProperty(Collection<TrackerNode> nodes, String prop,
LinkedHashSet<LoadBinding> bindings, LinkedHashSet<Object> kidbases, Set<TrackerNode> visited) {
if (".".equals(prop)) { //all base object
for (TrackerNode node : nodes) {
getLoadBindings0(node, bindings, kidbases, visited);
Method show
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Button show(String message, String title, Button[] buttons, String[] btnLabels, String icon,
Button focus, EventListener<ClickEvent> listener, Map<String, String> params) {
final Map<String, Object> arg = new HashMap<String, Object>();
final Desktop desktop = Executions.getCurrent().getDesktop();
arg.put("message", message);
Method getAvailableAtClient
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Set<? extends Component> getAvailableAtClient(int offset, int limit, boolean itemOnly) {
final Set<Component> avail = new LinkedHashSet<Component>(32);
if (!itemOnly) {
avail.addAll(_listbox.getHeads());
final Listfoot listfoot = _listbox.getListfoot();
Method include
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void include(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException {
try {
// B60-ZK-1337: issues with RenderHttpServletRequest/RenderHttpServletResponse Wrapper
// will cause ServletException: Original SevletRequest or wrapped original ServletRequest
// not passed to RequestDispatcher in violation of SRV.8.2 and SRV.14.2.5.1
Method getBrowser
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static Browser getBrowser() {
Double number = Servlets.getBrowser(ServletFns.getCurrentRequest(), "ff");
if (number != null && number >= 3.6)
return Browser.Firefox;
number = Servlets.getBrowser(ServletFns.getCurrentRequest(), "ie");
Function d3_selection_classed
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_selection_classed(name, value) {
var re = new RegExp("(^|\\s+)" + d3.requote(name) + "(\\s+|$)", "g");
// If no value is specified, return the first value.
if (arguments.length < 2) {
Function d3_svg_lineHermite
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_lineHermite(points, tangents) {
if (tangents.length < 1
|| (points.length != tangents.length
&& points.length != tangents.length + 2)) {
return d3_svg_lineLinear(points);
Function _scrlIntoView
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _scrlIntoView(outer: HTMLElement | null, inner: HTMLElement | null, info: ScrollIntoViewInfo | undefined, excludeHorizontal: boolean): ScrollIntoViewInfo {
if (outer && inner) {
var ooft = zk(outer).revisedOffset(),
ioft = info ? info.oft : zk(inner).revisedOffset(),
top = ioft[1] - ooft[1]
Function _createWrapper
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createWrapper(element: JQuery): JQuery {
// ZK-5354: Update animation implementation to avoid iframe reloading
if (element.find('iframe').length) {
return element;
}
Method init
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
@ContextParam(ContextType.BIND_CONTEXT) BindContext bindContext,
@ContextParam(ContextType.BINDER) Binder binder,
@ContextParam(ContextType.TRIGGER_EVENT) Event event,
@ContextParam(ContextType.COMMAND_NAME) String commandName,
@ContextParam(ContextType.EXECUTION) Execution execution,
Method show
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
@ContextParam(ContextType.BIND_CONTEXT) BindContext bindContext,
@ContextParam(ContextType.BINDER) Binder binder,
@ContextParam(ContextType.TRIGGER_EVENT) Event event,
@ContextParam(ContextType.COMMAND_NAME) String commandName,
@ContextParam(ContextType.EXECUTION) Execution execution,
Method Semicolon
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public void Semicolon() throws ParseException {
Assignment();
label_2:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
Method Concatenation
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public void Concatenation() throws ParseException {
Math();
label_11:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {