comparison src/org/eclipse/jetty/io/AbstractBuffer.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children 0e96ce3db20a
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
22 import java.io.InputStream; 22 import java.io.InputStream;
23 import java.io.OutputStream; 23 import java.io.OutputStream;
24 import java.nio.charset.Charset; 24 import java.nio.charset.Charset;
25 25
26 import org.eclipse.jetty.util.TypeUtil; 26 import org.eclipse.jetty.util.TypeUtil;
27 import org.eclipse.jetty.util.log.Log; 27 import org.slf4j.Logger;
28 import org.eclipse.jetty.util.log.Logger; 28 import org.slf4j.LoggerFactory;
29 29
30 /** 30 /**
31 * 31 *
32 * 32 *
33 */ 33 */
34 public abstract class AbstractBuffer implements Buffer 34 public abstract class AbstractBuffer implements Buffer
35 { 35 {
36 private static final Logger LOG = Log.getLogger(AbstractBuffer.class); 36 private static final Logger LOG = LoggerFactory.getLogger(AbstractBuffer.class);
37 37
38 private final static boolean __boundsChecking = Boolean.getBoolean("org.eclipse.jetty.io.AbstractBuffer.boundsChecking"); 38 private final static boolean __boundsChecking = Boolean.getBoolean("org.eclipse.jetty.io.AbstractBuffer.boundsChecking");
39 39
40 protected final static String 40 protected final static String
41 __IMMUTABLE = "IMMUTABLE", 41 __IMMUTABLE = "IMMUTABLE",
638 return new String(asArray(), 0, length(),charset); 638 return new String(asArray(), 0, length(),charset);
639 639
640 } 640 }
641 catch(Exception e) 641 catch(Exception e)
642 { 642 {
643 LOG.warn(e); 643 LOG.warn("",e);
644 return new String(asArray(), 0, length()); 644 return new String(asArray(), 0, length());
645 } 645 }
646 } 646 }
647 647
648 /* ------------------------------------------------------------ */ 648 /* ------------------------------------------------------------ */
655 return new String(bytes,getIndex(),length(),charset); 655 return new String(bytes,getIndex(),length(),charset);
656 return new String(asArray(), 0, length(),charset); 656 return new String(asArray(), 0, length(),charset);
657 } 657 }
658 catch(Exception e) 658 catch(Exception e)
659 { 659 {
660 LOG.warn(e); 660 LOG.warn("",e);
661 return new String(asArray(), 0, length()); 661 return new String(asArray(), 0, length());
662 } 662 }
663 } 663 }
664 664
665 /* ------------------------------------------------------------ */ 665 /* ------------------------------------------------------------ */