Changeset 71bc55b for apps/jetty


Ignore:
Timestamp:
Oct 17, 2015 4:49:37 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
abc0f4c
Parents:
5f175455
Message:

lint core, i2psnark, jetty, susimail

Location:
apps/jetty/java/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/java/src/net/i2p/jetty/JettyStart.java

    r5f175455 r71bc55b  
    7373     *  Modified from XmlConfiguration.main()
    7474     */
     75    @SuppressWarnings({"unchecked", "rawtypes"})
    7576    public void parseArgs(String[] args) throws Exception {
    7677        Properties properties=new Properties();
  • apps/jetty/java/src/net/i2p/servlet/filters/XSSRequestWrapper.java

    r5f175455 r71bc55b  
    8585     */
    8686    @Override
     87    @SuppressWarnings({"unchecked", "rawtypes"})
    8788    public Map getParameterMap() {
    8889        Map rv = new HashMap();
  • apps/jetty/java/src/org/mortbay/servlet/MultiPartRequest.java

    r5f175455 r71bc55b  
    220220
    221221    /* ------------------------------------------------------------ */
     222    @SuppressWarnings("rawtypes")
    222223    public Hashtable[] getMultipleParams(String name)
    223224    {
  • apps/jetty/java/src/org/mortbay/util/ByteArrayPool.java

    r5f175455 r71bc55b  
    3030        Integer.getInteger("org.mortbay.util.ByteArrayPool.pool_size",8).intValue();
    3131   
    32     public static final ThreadLocal __pools=new BAThreadLocal();
     32    public static final ThreadLocal<byte[][]> __pools = new BAThreadLocal();
    3333    public static final AtomicInteger __slot = new AtomicInteger();
    3434   
     
    4040    public static byte[] getByteArray(int size)
    4141    {
    42         byte[][] pool = (byte[][])__pools.get();
     42        byte[][] pool = __pools.get();
    4343        boolean full=true;
    4444        for (int i=pool.length;i-->0;)
     
    6464    public static byte[] getByteArrayAtLeast(int minSize)
    6565    {
    66         byte[][] pool = (byte[][])__pools.get();
     66        byte[][] pool = __pools.get();
    6767        for (int i=pool.length;i-->0;)
    6868        {
     
    8585            return;
    8686       
    87         byte[][] pool = (byte[][])__pools.get();
     87        byte[][] pool = __pools.get();
    8888        for (int i=pool.length;i-->0;)
    8989        {
     
    104104    /* ------------------------------------------------------------ */
    105105    /* ------------------------------------------------------------ */
    106     private static final class BAThreadLocal extends ThreadLocal
     106    private static final class BAThreadLocal extends ThreadLocal<byte[][]>
    107107    {
    108         protected Object initialValue()
     108        @Override
     109        protected byte[][] initialValue()
    109110            {
    110111                return new byte[__POOL_SIZE][];
Note: See TracChangeset for help on using the changeset viewer.