Showing 4,841 of 7,782 total issues
Method coerceToUi
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object coerceToUi(Object val, Component comp, BindContext ctx) {
Tree tree = (Tree) comp;
final TreeModel<Object> model = tree.getModel();
if (model != null && !(model instanceof TreeSelectableModel)) {
Method processChildrenLoadBindings
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processChildrenLoadBindings(Component comp, Annotation ann, ExpressionAnnoInfo converterInfo) {
String loadExpr = null;
final List<String> beforeCmds = new ArrayList<String>();
final List<String> afterCmds = new ArrayList<String>();
Method processFormSaveBindings
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processFormSaveBindings(Component comp, String formId, Annotation ann,
ExpressionAnnoInfo validatorInfo) {
String saveExpr = null;
final List<String> beforeCmds = new ArrayList<String>();
final List<String> afterCmds = new ArrayList<String>();
Method processPropertyLoadBindings
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processPropertyLoadBindings(Component comp, String propName, Annotation ann,
ExpressionAnnoInfo converterInfo) {
String loadExpr = null;
final List<String> beforeCmds = new ArrayList<String>();
final List<String> afterCmds = new ArrayList<String>();
Method doSort
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/*package*/ boolean doSort(boolean ascending) {
final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr == null)
return false;
Method setMold
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setMold(String mold) {
final String old = getMold();
if (!Objects.equals(old, mold)) {
super.setMold(mold);
//we have to change model before detaching paging,
Method getVisibleIndexOfItem0
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private int getVisibleIndexOfItem0(Treeitem item, boolean inclusive) {
// ZK-2539: use vector instead of recursive calls to avoid stack overflow
// when number of tree items is huge.
Vector<Treeitem> items = new Vector<Treeitem>();
int count = 0;
Method include
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void include(Writer out) throws IOException {
final Desktop desktop = getDesktop();
final Execution exec = getExecution();
final String src = exec.toAbsoluteURI(_src, false);
final Map<String, Object> old = setupDynams(exec);
Method compare
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public int compare(Object o1, Object o2) {
final int index = _index < 0 && _treecol != null ? _treecol.getColumnIndex() : _index;
Object v1, v2;
Method compare
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public int compare(Object o1, Object o2) {
final int index = _index < 0 && _header != null ? _header.getColumnIndex() : _index;
Object v1, v2;
if (o1 instanceof Listitem) { //not live data
Method renderDesktop
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void renderDesktop(Execution exec, Page page, Writer out) throws IOException {
HtmlPageRenders.setContentType(exec, page);
final PageCtrl pageCtrl = (PageCtrl) page;
write(out, HtmlPageRenders.outFirstLine(exec, page)); //might null
Method beforeChildAdded
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void beforeChildAdded(Component newChild, Component refChild) {
if (newChild instanceof Listitem) {
if (newChild instanceof Listgroupfoot) {
if (!hasGroup())
throw new UiException("Listgroupfoot cannot exist alone, you have to add a Listgroup first");
Method setup
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final Object setup(HttpSession sess, ServletRequest request, ServletResponse response,
String charset) {
if (hasSetup(request)) //processed before?
return Objects.UNKNOWN;
Function position
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function position(row, u, rect, flush) {
var i = -1,
n = row.length,
x = rect.x,
y = rect.y,
Function d3_scale_pow
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_pow(linear, exponent) {
var powp = d3_scale_powPow(exponent),
powb = d3_scale_powPow(1 / exponent);
function scale(x) {
Function attr
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3_selectionPrototype.attr = function(name, value) {
name = d3.ns.qualify(name);
// If no value is specified, return the first value.
if (arguments.length < 2) {
Function showHide
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showHide( elements, show ) {
var display, elem,
values = [],
index = 0,
length = elements.length;
Function arc
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function arc() {
var r0 = innerRadius.apply(this, arguments),
r1 = outerRadius.apply(this, arguments),
a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset,
a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset,
Function updateLocale
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateLocale(name, config) {
if (config != null) {
var locale,
tmpLocale,
parentConfig = baseConfig;
Function slideUp
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slideUp(wgt: zk.Widget, opts?: zk.SlideOptions): this {
if (_checkAnimated(this, wgt, opts, 'slideUp'))
return this;
var anchor = opts ? opts.anchor || 't' : 't',