Showing 4,841 of 7,782 total issues
Method uploadErrorMessage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static String uploadErrorMessage(Throwable ex) {
log.error("Failed to upload", ex);
if (ex instanceof FileUploadSizeException) {
try {
FileUploadSizeException fex = (FileUploadSizeException) ex;
Method getFromScope
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Object getFromScope(String name) {
final BSHInterpreter ip = getInterpreter(_scope);
final Scope curr = ip != null ? ip.getCurrent() : null;
if (curr == null)
return getImplicit(name); //ignore scope
Method saveEqualBeans
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void saveEqualBeans(ELContext elCtx, Object base, String prop, Object value) {
final BindELContext ctx = (BindELContext) ((EvaluationContext) elCtx).getELContext();
final BindContext bctx = (BindContext) ctx.getAttribute(BinderImpl.BINDCTX);
Method getFromScope
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Object getFromScope(String name) {
final Scope curr = getCurrent();
if (curr == null) //no scope allowed
return getImplicit(name);
Method call
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void call(Object base, Method method) {
Method originalMethod = ViewModelAnnotationResolvers.getOriginalMethod(base, method);
Class<?>[] paramTypes = originalMethod.getParameterTypes();
java.lang.annotation.Annotation[][] parmAnnos = originalMethod.getParameterAnnotations();
Object[] params = new Object[paramTypes.length];
Method coerceToUi
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object coerceToUi(Object val, C comp, BindContext ctx) {
final ListModel<?> model = getComponentModel(comp);
//ZK-762 selection of ListModelList is not correct if binding to selectedItem
Method coerceToUi
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object coerceToUi(Object val, Component comp, BindContext ctx) {
Combobox cbx = (Combobox) comp;
final ListModel<?> model = cbx.getModel();
//ZK-762 selection of ListModelList is not correct if binding to selectedItem
Method coerceToUi
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object coerceToUi(Object val, Component comp, BindContext ctx) {
Listbox lbx = (Listbox) comp;
final ListModel<?> model = lbx.getModel();
//ZK-762 selection of ListModelList is not correct if binding to selectedItem
Method validateSaveFormBinding
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean validateSaveFormBinding(Component comp, SaveFormBinding binding, String command,
Map<String, Property[]> validates, boolean valid, Set<Property> notifys) {
//validate tracked savebinding
Set<SaveBinding> savebindings = ((BinderCtrl) binding.getBinder())
.getFormAssociatedSaveBindings(binding.getComponent());
Method onEvent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void onEvent(Event event) throws Exception {
if (_modelInitListener != null) {
Grid.this.removeEventListener("onInitModel", _modelInitListener);
_modelInitListener = null;
}
Method renderProperties
has 26 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);
render(renderer, "oddRowSclass", _scOddRow);
Method getEqualBeans
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Set<Object> getEqualBeans(Object bean) {
boolean doSync = false;
EqualBeans equalBeans;
if (bean instanceof Collection) {
equalBeans = _identityMap.get(bean);
Method beforeChildAdded
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void beforeChildAdded(Component newChild, Component refChild) {
if (newChild instanceof Caption) {
if (_caption != null && _caption != newChild)
throw new UiException("Only one caption is allowed: " + this);
} else if (refChild instanceof Caption) {
Method service
has 26 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_OPEN)) {
OpenEvent evt = OpenEvent.getOpenEvent(request);
_open = evt.isOpen();
Method selectTabDirectly
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/* packge */void selectTabDirectly(Tab tab, boolean byClient) {
if (tab == null)
throw new IllegalArgumentException("null tab");
if (tab.getTabbox() != this)
throw new UiException("Not my child: " + tab);
Method setParent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setParent(Component parent) {
Radiogroup oldgp = null;
if (getParent() != null)
oldgp = getRadiogroup();
Method encodeURL
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public String encodeURL(ServletRequest request, ServletResponse response, String uri)
throws ServletException, UnsupportedEncodingException {
uri = Servlets.locate(_ctx, request, uri, getLocator()); //resolves "*"
uri = (_encURLPrefix != null ? _mappingURI + _encURLPrefix : _mappingURI) + uri; //prefix with mapping
Function remove
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( owner, key ) {
var i,
cache = owner[ this.expando ];
if ( cache === undefined ) {
Function cluster
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cluster(d, i) {
var nodes = hierarchy.call(this, d, i),
root = nodes[0],
previousNode,
x = 0,
Function toISOString
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toISOString(keepOffset) {
if (!this.isValid()) {
return null;
}
var utc = keepOffset !== true,