Showing 4,841 of 7,782 total issues
Method setPaginal
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setPaginal(Paginal pgi) {
if (!Objects.equals(pgi, _pgi)) {
final Paginal old = _pgi;
_pgi = pgi; //assign before detach paging, since removeChild assumes it
Method renderProperties
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
super.renderProperties(renderer);
if (!"normal".equals(_border))
render(renderer, "border", _border);
Method organizeGroup
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
protected void organizeGroup(Comparator<D> cmpr, int col) {
List<List<D>> group = new LinkedList<List<D>>();
List<D> gdata = null;
D last = null;
Method setPaginal
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setPaginal(Paginal pgi) {
if (!Objects.equals(pgi, _pgi)) {
final Paginal old = _pgi;
_pgi = pgi; // assign before detach paging, since removeChild
// assumes it
Method render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final void render(ServletContext ctx, HttpServletRequest request, HttpServletResponse response,
Richlet richlet, String path, boolean pageDOM, Writer out) throws ServletException, IOException {
if (path == null)
path = Https.getThisServletPath(request);
Method putAll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void putAll(Map<? extends K, ? extends V> c) {
if (c == _map) //special case
return;
if (_map instanceof LinkedHashMap) {
Method cleanup
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void cleanup(Execution exec, Execution parent, List errs) throws Exception {
if (parent == null) {
try {
if (errs == null || errs.isEmpty()) {
if (log.isDebugEnabled()) {
Method getAttributeNames
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Enumeration getAttributeNames() {
final Enumeration _e = _req.getAttributeNames();
final Iterator _it = _attrs.keySet().iterator();
return new Enumeration() {
Object _next;
Method load
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public V load(String src) throws Exception {
if (log.isDebugEnabled())
log.debug("Parse {}", src);
final String path = getRealPath(src);
InputStream is = null;
Method getItems
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Collection<Treeitem> getItems() {
return new AbstractCollection<Treeitem>() {
public int size() {
return getItemCount();
}
Method getAttributeNames
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Enumeration getAttributeNames() {
final Enumeration _e = _req.getAttributeNames();
final Iterator _it = _attrs.keySet().iterator();
return new Enumeration() {
Object _next;
Function d3_dispatch
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_dispatch(type) {
var dispatch = {},
listeners = [];
dispatch.add = function(listener) {
Function drag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.drag = function() {
var event = d3.dispatch("drag", "dragstart", "dragend");
function drag() {
this
Function wiggle
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"wiggle": function(data) {
var n = data.length,
x = data[0],
m = x.length,
max = 0,
Function firstWalk
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function firstWalk(node, previousSibling) {
var children = node.children,
layout = node._tree;
if (children && (n = children.length)) {
var n,
Function finish
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function( type ) {
if ( type !== false ) {
type = type || "fx";
}
return this.each( function() {
Function off
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
off: function( types, selector, fn ) {
var handleObj, type;
if ( types && types.preventDefault && types.handleObj ) {
// ( event ) dispatched jQuery.Event
Function parseHTML
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.parseHTML = function( data, context, keepScripts ) {
if ( typeof data !== "string" ) {
return [];
}
if ( typeof context === "boolean" ) {
Function addChd
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function addChd(wgt: zk.Widget, ...rargs: string[]): void {
if (wgt) {
const onSizeChildren: zk.Widget[] = [],
fn = function (child: zk.Widget): void {
const act = _beforeAction(child, 'show') as never,
Function setLoaded
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setLoaded(pkg: string, wait?: boolean): void { //internal
_xloadings.$remove(pkg);
_loading[pkg] = true;
if (wait) {