Showing 7,775 of 7,775 total issues
Method textAsAllowed
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean textAsAllowed(LanguageDefinition langdef, Collection<Item> items, boolean bNativeContent) {
boolean textAsAllowed = true;
String xmlFound = null; //whether a XML fragment
String zkElem = null; //a ZK element
boolean empty = true; //whether there is anything other than whitespace
Method removeEventListener
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean removeEventListener(String evtnm, EventListener<? extends Event> listener) {
if (evtnm == null || listener == null)
throw new IllegalArgumentException("null");
if (_auxinf != null && _auxinf.listeners != null) {
Method doFinally
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void doFinally() {
Throwable t = null;
if (_sysinitEx)
for (int j = 0; j < _sysinits.length; ++j) {
final Initiator init = _sysinits[j];
Method service
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean service(AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.startsWith(ON_BIND_COMMAND) || cmd.startsWith(ON_BIND_GLOBAL_COMMAND) || cmd.startsWith(ON_BIND_COMMAND_UPLOAD)) {
final Map<String, Object> data = request.getData();
String vcmd = data.get("cmd").toString();
Method invoke
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public Object invoke(ELContext ctx, Object base, Object method, Class[] paramTypes, Object[] params)
throws MethodNotFoundException {
Object value = super.invoke(ctx, base, method, paramTypes, params);
// in order to support more complex case, ex: .stream().filter(x -> x.contains(vm.value))
Method getClassName
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private String getClassName() {
switch (sort) {
case VOID:
return "void";
case BOOLEAN:
Method hashCode
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static int hashCode(Object a) {
if (a == null) {
return -1;
}
if (!a.getClass().isArray()) {
Method doPropertyChange
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void doPropertyChange(Object base, String prop) {
if (_log.isDebugEnabled()) {
_log.debug("doPropertyChange: base=[{}],prop=[{}]", base, prop);
}
Method processAllComponentsBindings
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processAllComponentsBindings(Component comp) {
final Binder selfBinder = BinderUtil.getBinder(comp);
//check if a component was binded already(by any binder)
if (selfBinder != null) //this component already binded ! skip all of its children
return;
Method handleComponentAttached
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void handleComponentAttached(Component comp) {
//ZK-2022, check if this component is in queue for removal
//if yes, then post and do processing later
boolean removeMark = Boolean.TRUE.equals(comp.getAttribute(REMOVE_MARK));
if (removeMark) {
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 setModel
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setModel(ListModel<?> model) {
if (model != null) {
if (!(model instanceof Selectable))
throw new UiException(model.getClass() + " must implement " + Selectable.class);
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 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 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 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 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;