Showing 4,841 of 7,782 total issues
Consider simplifying this complex logical expression. Open
Open
if (!nested || (_itemsSpecified && _items == null) || (_endSpecified && _end < _beg)
|| (!_itemsSpecified && !_endSpecified) || !isEffective())
return;
Consider simplifying this complex logical expression. Open
Open
if ( ( !support.boxSizingReliable() && isBorderBox ||
// Support: IE 10 - 11+, Edge 15 - 18+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
Consider simplifying this complex logical expression. Open
Open
} else if ((mindex >= 0 && mindex <= i /*&& mmindex >= i location French will lose last char */)
|| (eindex >= 0 && eindex <= i) || (aa > -1 && aa <= i) || (gg > -1 && gg <= i)) {
if (c.match(/\w/)) {
ary.push(c);
} else {
Method load
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final boolean load(String flnm) {
final InputStream strm = ContentTypes.class.getResourceAsStream(flnm);
if (strm == null)
return false;
Method defaultResolveEntity
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected InputSource defaultResolveEntity(String publicId, String systemId)
throws SAXException {
if (systemId == null)
return null;
Method getDefaultTLDs
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final Map<String, URL> getDefaultTLDs() {
Map<String, URL> defURLs = _defURLsRef.get();
if (defURLs != null) {
return defURLs;
}
Method nextToken
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final Result nextToken(String src, int from,
char[] separators, boolean escBackslash, boolean quotAsToken,
boolean parenthesis)
throws IllegalSyntaxException {
final int len = src.length();
Method invoke
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("null") // args[i] can't be null due to earlier checks
public Object invoke(ELContext context, Object... args)
throws ELException {
if (context == null) {
Method generateParseException
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public ParseException generateParseException() {
jj_expentries.clear();
boolean[] la1tokens = new boolean[62];
if (jj_kind >= 0) {
la1tokens[jj_kind] = true;
Method UpdateLineColumn
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void UpdateLineColumn(char c)
{
column++;
if (prevCharIsLF)
Method getValue
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Object getValue(ELContext context, Object base, Object property) {
if (context == null) {
throw new NullPointerException();
}
Method treeSelect
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Command
public void treeSelect(
@ContextParam(ContextType.TRIGGER_EVENT) SelectEvent event) {
// Clients.log("selection count before select "
// + treeModel.getSelectionCount());
Method doAfterCompose
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void doAfterCompose(final Component comp) throws Exception {
super.doAfterCompose(comp);
button.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
Method serveResource
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
final WebManager webman = getWebManager();
final WebApp wapp = webman.getWebApp();
final HttpServletRequest httpreq = ResourceHttpServletRequest.getInstance(request);
Method service
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void service(AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_CLICK) || cmd.equals(Events.ON_DOUBLE_CLICK) || cmd.equals(Events.ON_RIGHT_CLICK)
|| cmd.equals(Events.ON_MOUSE_OVER) || cmd.equals(Events.ON_MOUSE_OUT)) {
Events.postEvent(MouseEvent.getMouseEvent(request));
Method getAttributes
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Map<String, Object> getAttributes(int scope) {
switch (scope) {
case SPACE_SCOPE:
if (this instanceof IdSpace)
return getAttributes();
Method enableServerPush
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean enableServerPush(ServerPush serverPush, boolean enable, Serializable enabler) {
synchronized (enablers) {
boolean enablersEmptyBefore = enablers.isEmpty();
if (enable) {
//handle dummy target
Method checkPageRemoved
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void checkPageRemoved(Set<Component> removed) {
//1. scan once
final Desktop desktop = _exec.getDesktop();
Set<Page> pages = null;
for (Page page : desktop.getPages()) {
Method mergeResponses
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private List<AuResponse> mergeResponses(List<AuResponse> responses) {
if (responses.size() >= 2) { // worth merging
List<AuSetAttribute> bulk = new LinkedList<>();
ListIterator<AuResponse> iterator = responses.listIterator();
Object previousDepends = null, currentDepends = null;
Method getFromNamespace
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Object getFromNamespace(String name) {
final Scope scope = getCurrent();
if (scope != null) { //null means no scope allowed!
final Execution exec = Executions.getCurrent();
if (exec != null && exec != scope) {