Changeset 7611


Ignore:
Timestamp:
Mar 1, 2019, 9:42:54 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2151: Pre-compile all JSP pages before releases

Fixes a compilation error that was not detected by Eclipse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/util/parser/DefaultItemFunction.java

    r6875 r7611  
    2929import org.nfunk.jep.ParseException;
    3030
     31import net.sf.basedb.core.BasicItem;
    3132import net.sf.basedb.core.DbControl;
    3233import net.sf.basedb.core.Item;
     
    162163    else
    163164    {
    164       List<T> items = subtype == null ?
    165         (List<T>)project.findDefaultItems(dc, itemType, true) :
    166         (List<T>)project.findDefaultItems(dc, subtype, false);
    167       item = items.size() > 0 ? items.get(0) : null;
     165      List<BasicItem> items = subtype == null ?
     166        project.findDefaultItems(dc, itemType, true) :
     167        project.findDefaultItems(dc, subtype, false);
     168      item = items.size() > 0 ? (T)items.get(0) : null;
    168169      itemCache.put(subtype, item);
    169170    }
Note: See TracChangeset for help on using the changeset viewer.