Showing 4,841 of 7,782 total issues
Method manualOperation
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Thread manualOperation(final Desktop desktop) {
return new Thread() {
public void run() {
try {
Executions.activate(desktop);
Method addColumn
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Listen("onClick = #addColumn")
public void addColumn() {
String columnLabel = "Column " + columnNum;
String footLabel = "Footer " + columnNum;
String width = "100px";
Method run
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void run() {
boolean disconnect=false;
while (!disconnect) {
try {
if(updating) {
Method getValidator1
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Validator getValidator1(){
return new AbstractValidator() {
public void validate(ValidationContext ctx) {
Method outLangStyleSheets
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final String outLangStyleSheets(Execution exec, WebApp wapp, String deviceType) {
if (exec.isAsyncUpdate(null) || exec.getAttribute(ATTR_LANG_CSS_GENED) != null)
return ""; //nothing to generate
exec.setAttribute(ATTR_LANG_CSS_GENED, Boolean.TRUE);
Method sendEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void sendEvent(Component comp, Event event) {
final Execution exec = Executions.getCurrent();
final Desktop desktop = exec.getDesktop();
//note: we don't use comp.getDesktop because 1) it may be null
//2) it may be different from the current desktop
Method processDynamicWpdWithSourceMapIfAny
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private byte[] processDynamicWpdWithSourceMapIfAny(HttpServletRequest request, HttpServletResponse response, String pkgWpd, String path) throws Exception {
List<String> dividedPaths = splitSourceMapJsPathIfAny(path);
StringBuilder sb = new StringBuilder();
int index = 0;
String lastWpd = null;
Method findResourcePath
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private String findResourcePath(RequestContext reqctx, OutputStream out, String path, String dir, boolean locate, boolean write) throws ServletException, IOException {
if (path.startsWith("~./")) path = path.substring(2);
else if (path.charAt(0) != '/') path = Files.normalize(dir, path);
//source map browser issue and check source map file is available or not
String originalPath = "";
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 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 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 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);