Author: julien_viet
Date: 2009-10-25 18:09:27 -0400 (Sun, 25 Oct 2009)
New Revision: 428
Modified:
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/CharsetTextEncoder.java
Log:
fix bug
Modified:
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/CharsetTextEncoder.java
===================================================================
---
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/CharsetTextEncoder.java 2009-10-25
21:04:29 UTC (rev 427)
+++
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/CharsetTextEncoder.java 2009-10-25
22:09:27 UTC (rev 428)
@@ -64,19 +64,19 @@
switch (bytes.length)
{
case 0:
+ throw new AssertionError();
+ case 1:
out.write(bytes[0]);
break;
- case 1:
+ case 2:
out.write(bytes[0]);
out.write(bytes[1]);
break;
- case 2:
+ case 3:
out.write(bytes[0]);
out.write(bytes[1]);
out.write(bytes[2]);
break;
- case 3:
- break;
default:
out.write(bytes);
}
Show replies by date