Showing 4,841 of 7,782 total issues
Method doView
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
//try parameter first and then attribute
boolean bRichlet = false;
String path = request.getParameter(ATTR_PAGE);
if (path == null) {
Method toHTML
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public String toHTML(PageDefinition pgdef, Page page) {
final Evaluator eval = pgdef.getEvaluator();
if (_cond != null && !_cond.isEffective(eval, page))
return "";
Method clearChildren
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void clearChildren() {
AbstractComponent hostIfAny = (AbstractComponent) getShadowHostIfAny();
try {
if (hostIfAny != null) {
hostIfAny.disableHostChanged();
Method handleError
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final void handleError(Throwable ex, UiVisualizer uv, List<Throwable> errs) {
final Throwable t = Exceptions.findCause(ex, Expectable.class);
if (t == null) {
if (ex instanceof org.xml.sax.SAXException
|| ex instanceof org.zkoss.zk.ui.metainfo.PropertyNotFoundException)
Method setExecution
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setExecution(Execution exec) {
_execution = exec;
//http param
_paramResolvers.put(QueryParam.class, new ParamResolver<Annotation>() {
Method load
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public void load(BindContext ctx) {
final Component comp = getComponent(); //ctx.getComponent();
final BindEvaluatorX eval = getBinder().getEvaluatorX();
final BindingExecutionInfoCollector collector = ((BinderCtrl) getBinder()).getBindingExecutionInfoCollector();
Method service
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_SELECT)) {
final Tabbox tabbox = getTabbox();
final Set<Tab> prevSeldItems = new LinkedHashSet<Tab>();
Method fixGroupsInfoAfterRemove
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void fixGroupsInfoAfterRemove(Row child, int index) {
if (!_isReplacingRow) { //@see Grid.Renderer#render
//called by #removeChild, handling GroupInfo if !isReplcingRow
if (child instanceof Group) {
int[] prev = null, remove = null;
Method service
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_CHANGE)) {
try {
final Object oldval = _value;
Function tokenize
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
Method wireOthers
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void wireOthers(Object x) {
//check methods
final Class cls = _controller.getClass();
Method[] mtds = cls.getMethods();
for (int j = 0; j < mtds.length; ++j) {
Method visualizeErrors
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private final void visualizeErrors(Execution exec, UiVisualizer uv, List<Throwable> errs) {
final StringBuffer sb = new StringBuffer(128);
for (Throwable t : errs) {
if (sb.length() > 0)
sb.append('\n');
Method processPropertyBindings
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processPropertyBindings(Component comp, String propName) {
final ComponentCtrl compCtrl = (ComponentCtrl) comp;
//validator and converter information
ExpressionAnnoInfo validatorInfo = parseValidator(comp, propName);
Method setSort
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setSort(String type) {
if (type == null)
return;
if (type.startsWith("client")) {
try {
Method setSort
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setSort(String type) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
if (type == null)
return;
if (type.startsWith("client")) {
try {
Method updateVisibleCount
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void updateVisibleCount(Listitem item, boolean isRemove) {
if (item instanceof Listgroup || item.isVisible()) {
final Listgroup g = getListgroupAt(item.getIndex());
// We shall update the number of the visible item in the following
Function matcherFromTokens
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromTokens( tokens, selector/* Jumper Chen, Potix, 20130509*/ ) {
var checkContext, matcher, j,
len = tokens.length,
leadingRelative = Expr.relative[ tokens[ 0 ].type ],
implicitRelative = leadingRelative || Expr.relative[ " " ],
Function val
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, valueIsFunction,
elem = this[ 0 ];
if ( !arguments.length ) {
Function zkx
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function zkx(wi?: WidgetInfo, extra?: ExtraInfo, aucmds?: AuCmds, js?: string): void { //extra is either delay (BL) or [stub, filter] (AU)
zk.mounting = true;
try {
if (js) jq.globalEval(js);
Method load
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final TaglibDefinition load(Element root) throws Exception {
final TaglibDefinition tagdef = new TaglibDefinition();
Exception excp = null;
for (Element e: root.getElements("function")) {
final String name = IDOMs.getRequiredElementValue(e, "name");