Showing 4,841 of 7,782 total issues
Method write
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Method write(ELContext ctx) {
if (this.write == null) {
this.write = Util.getMethod(this.owner, descriptor.getWriteMethod());
//20110921, henrichen: Introspector is too strict for Setter(must return void), here we loosen it
Method Boolean
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public void Boolean() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case TRUE:
AstTrue jjtn001 = new AstTrue(JJTTRUE);
boolean jjtc001 = true;
Method buildParameters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static Object[] buildParameters(Class<?>[] parameterTypes,
boolean isVarArgs,Object[] params) {
ExpressionFactory factory = getExpressionFactory();
Object[] parameters = null;
if (parameterTypes.length > 0) {
Method buildStaticModel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static TreeNode<String> buildStaticModel(String data) {
DefaultTreeNode<String> root = node("",
node(data + "-1",
node(data + "-1-1",
node(data + "-1-1-1"),
Method addTreeNode
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private BugOasiTreeNode<BugFormModel> addTreeNode(
BugOasiTreeNode<BugFormModel> parent,
BugOasiTreeNode<BugFormModel> newnod, BugFormModel myrow, boolean open,
Integer pos) {
if (parent == null) {
Method buildStaticModel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static TreeNode<User> buildStaticModel(String data) {
DefaultTreeNode<User> root = node("",
node(data + "-1",
node(data + "-1-1",
node(data + "-1-1-1"),
Method outSpecialJS
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final String outSpecialJS(Desktop desktop) {
final StringBuffer sb = new StringBuffer();
//output application name
String oldnm = (String) desktop.getAttribute(ATTR_APPNM);
Method parseLibProperty
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void parseLibProperty(Element el) {
final String nm = IDOMs.getRequiredElementValue(el, "name");
Element valueElmn = el.getElement("value");
Element appendableElmn = el.getElement("appendable");
boolean appendable = appendableElmn != null ? "true".equals(appendableElmn.getText(true)) : false;
Method injectByMethod
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean injectByMethod(Method md, Class<?> parmcls, Class<?> argcls, Object arg, String fdname) {
if (argcls == null || parmcls.isAssignableFrom(argcls)) {
final Field fd = _fldMaps.get(fdname);
if (fd != null && fd.getType().equals(parmcls)) {
final boolean old = fd.isAccessible();
Method lookup
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final LanguageDefinition lookup(String name) {
init();
if (name == null || name.length() == 0)
name = "xul/html";
Method parseTemplate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static TemplateInfo parseTemplate(NodeInfo parent, Element el, AnnotationHelper annHelper)
throws Exception {
if (annHelper.clear())
log.warn(message("Annotations are ignored since <template> doesn't support them", el));
if (el.getAttributeItem("forEach") != null)
Method setPageBefore
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setPageBefore(Page page, Component refRoot) {
beforeComponentPageChanged(page);
if (refRoot != null && (page == null || refRoot.getParent() != null || refRoot.getPage() != page))
refRoot = null;
if (refRoot != null /*&& refRoot.getPage() == page (checked)*/
Method onEvent
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void onEvent(Event event) throws Exception {
final long max = System.currentTimeMillis() + getMaxSchedTime();
if (log.isDebugEnabled()) {
log.debug("Handling schedule server push, _schedInfos is empty: [{}]", !scheduledServerPush());
}
Method addResponse
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void addResponse(String key, AuResponse response, int priority) {
if (response == null)
throw new IllegalArgumentException();
//relative fix BUG ZK-1464
Method meterAuClient
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void meterAuClient(PerformanceMeter pfmeter, Execution exec, String hdr, boolean complete) {
for (int j = 0;;) {
int k = hdr.indexOf(',', j);
String ids = k >= 0 ? hdr.substring(j, k) : j == 0 ? hdr : hdr.substring(j);
Method getDeviceByClient
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final Device getDeviceByClient(String userAgent) throws DeviceNotFoundException {
String[] devTypes;
synchronized (_devmap) {
Collection<String> c = _devmap.keySet();
devTypes = c.toArray(new String[c.size()]);
Method addTemplateTracking
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void addTemplateTracking(Component templateComp, final Component eachComp, final Object data,
final int index, final int size) {
final Binder binder = BinderUtil.getBinder(eachComp, true);
if (binder == null)
return; //no binder
Method coerceToUi
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object coerceToUi(Object val, Component comp, BindContext ctx) {
Tabbox tbx = (Tabbox) comp;
final ListModel<?> model = tbx.getModel();
//ZK-762 selection of ListModelList is not correct if binding to selectedItem
Method mergeExceptionInfo
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static RuntimeException mergeExceptionInfo(Exception ex, Object loc) {
Location location = null;
boolean showColumn = true;
if (loc instanceof Component) {
location = toComponentLocation((Component) loc);
Method clone
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object clone() {
int cntSel = _selItems.size();
final Tree clone = (Tree) super.clone();