fix character bom error

This commit is contained in:
Zhanming Qi
2012-08-24 15:06:01 +08:00
parent 7b858ca10a
commit 4f107a1b16
4 changed files with 8 additions and 5 deletions
@@ -144,7 +144,7 @@ public class DruidDriver implements Driver, DruidDriverMBean {
}
/**
* �数定义�com.alibaba.druid.log.LogFilter=filter com.alibaba.druid.log.LogFilter.p1=prop-value
* 参数定义: com.alibaba.druid.log.LogFilter=filter com.alibaba.druid.log.LogFilter.p1=prop-value
* com.alibaba.druid.log.LogFilter.p2=prop-value
*
* @param url
@@ -33,9 +33,12 @@ import com.alibaba.druid.util.JdbcSqlStatUtils;
import com.alibaba.druid.util.StringUtils;
/**
* 监控相关的对外数�暴� *
* 监控相关的对外数据暴露
*
* <pre>
* 1. 为了支�jndi数��本类内部调用druid相关对象�需��射调�返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类� * 2. 对外暴露的public方法都应该先调用init(),应该有更好的方�,暂时没想� * </pre>
* 1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类型
* 2. 对外暴露的public方法都应该先调用init(),应该有更好的方式,暂时没想到
* </pre>
*
* @author sandzhang<sandzhangtoo@gmail.com>
*/
@@ -394,7 +394,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
long current = executeSpanNanoMax.get();
if (current < nanoSpan) {
if (executeSpanNanoMax.compareAndSet(current, nanoSpan)) {
// �航�銝滚�蝖殷�雿�糓蝏嘥之憭𡁏㺭���銝钅�隡𡁏迤蝖殷��扯��W�銝?稲�?
// 可能不准确,但是绝大多数情况下都会正确,性能换取一致性
executeNanoSpanMaxOccurTime = System.currentTimeMillis();
break;
@@ -19,7 +19,7 @@ public class ServletPathMatcher implements PatternMatcher {
/**
* <p>
* three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx)�
* three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx).
* </p>
* <b>Notice</b>: *xxx* will match *xxxyyyy. endsWithMatch first.
*/