Showing 4,841 of 7,782 total issues
Method addEscapes
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static final String addEscapes(String str) {
StringBuffer retval = new StringBuffer();
char ch;
for (int i = 0; i < str.length(); i++) {
switch (str.charAt(i))
Method add_escapes
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static String add_escapes(String str) {
StringBuffer retval = new StringBuffer();
char ch;
for (int i = 0; i < str.length(); i++) {
switch (str.charAt(i))
Method getStyleSheets
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final List<StyleSheet> getStyleSheets(Execution exec, WebApp wapp, String deviceType) {
if (wapp == null)
wapp = exec.getDesktop().getWebApp();
if (deviceType == null)
deviceType = exec.getDesktop().getDeviceType();
Method getVisibleChildren
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Collection<Component> getVisibleChildren(Component comp) {
final Collection<Component> children = comp.getChildren();
return new AbstractCollection<Component>() {
public int size() {
int size = 0;
Method replaceWith
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private final void replaceWith(AbstractComponent comp, boolean bFellow, boolean bListener, boolean bChildren) {
if (this == comp || comp._parent != null || comp._next != null || comp._prev != null || comp._chdinf != null
|| comp._page != null)
throw new IllegalStateException();
Method redraw
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void redraw(Writer out) throws IOException {
String ctl;
final Execution exec = getExecution();
final boolean au = exec.isAsyncUpdate(null);
if (!au && !exec.isIncluded()
Method service
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void service(AuRequest request, boolean everError) {
if (_ausvcs != null) {
//Note: removeListener might be called when invoking svc.service()
for (Iterator<AuService> it = new LinkedList<AuService>(_ausvcs).iterator(); it.hasNext();)
if (it.next().service(request, everError))
Method activate
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean activate(long timeout) throws InterruptedException, DesktopUnavailableException {
final Thread curr = Thread.currentThread();
if (_active != null && _active.thread.equals(curr)) { //re-activate
++_active.nActive;
return true;
Method processPropertyPromptBindings
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processPropertyPromptBindings(Component comp, String propName, Annotation ann,
ExpressionAnnoInfo converterInfo, ExpressionAnnoInfo validatorInfo) {
String expr = null;
Map<String, String[]> args = null;
for (final Iterator<Entry<String, String[]>> it = ann.getAttributes().entrySet().iterator(); it.hasNext();) {
Method render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/*package*/ @SuppressWarnings("unchecked")
void render(Row row, int index) throws Throwable {
if (row.isLoaded())
return; //nothing to do
Method setSort
has 42 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")) {
setSortAscending(type);
Method renderChangedItem
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
private void renderChangedItem(Treeitem item, Object node, int index) throws Throwable {
if (!_rendered && (_renderer instanceof RendererCtrl)) {
((RendererCtrl) _renderer).doTry();
_ctrled = true;
Method doInitRenderer
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("rawtypes")
private void doInitRenderer() {
if (getPage() == null)
return;
// sync the multiple status from model
Method render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void render(ActionContext ac, boolean nested) throws DspException, IOException {
if (!isEffective())
return;
if (nested)
throw new DspException(MWeb.DSP_NESTED_ACTION_NOT_ALLOWED,
Method renderWith
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void renderWith(ActionContext ac, Status st, String txt) throws DspException, IOException {
final StringBuffer sb = new StringBuffer();
int idx = 0;
final StringWriter out = getFragmentOut(ac, _trim);
for (int j = _beg, len = txt.length(); j < len && j <= _end; ++j) {
Function d3_rgb_parse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_rgb_parse(format, rgb, hsl) {
var r = 0, // red channel; int in [0, 255]
g = 0, // green channel; int in [0, 255]
b = 0, // blue channel; int in [0, 255]
m1, // CSS color specification match
Function cluster
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.cluster = function() {
var hierarchy = d3.layout.hierarchy().sort(null).value(null),
separation = d3_layout_treeSeparation,
size = [1, 1]; // width, height
Function handleStrictParse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleStrictParse(monthName, format, strict) {
var i,
ii,
mom,
llc = monthName.toLocaleLowerCase();
Function localeMonthsParse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function localeMonthsParse(monthName, format, strict) {
var i, mom, regex;
if (this._monthsParseExact) {
return handleStrictParse.call(this, monthName, format, strict);
Function ajaxSendNow
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxSendNow(reqInf: AuRequestInfo): void {
var fetchOpts: RequestInit = {
credentials: 'same-origin',
method: 'POST',
headers: reqInf.content instanceof FormData ? { 'ZK-SID': '' + reqInf.sid } : { 'Content-Type': zAu.ajaxSettings.contentType, 'ZK-SID': '' + reqInf.sid },