[Httpunit-commit] CVS: httpunit/src/com/meterware/servletunit ServletUnitHttpRequest.java,1.17,1.18
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-11-03 22:44:17
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/servletunit
In directory usw-pr-cvs1:/tmp/cvs-serv25607/src/com/meterware/servletunit
Modified Files:
ServletUnitHttpRequest.java
Log Message:
Remove inadvertant JDK 1.4 dependency
Index: ServletUnitHttpRequest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/servletunit/ServletUnitHttpRequest.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ServletUnitHttpRequest.java 25 Oct 2002 00:19:25 -0000 1.17
+++ ServletUnitHttpRequest.java 3 Nov 2002 22:44:13 -0000 1.18
@@ -848,7 +848,7 @@
range = range.trim();
int dashIndex = range.indexOf( '-' );
if (dashIndex < 0) {
- return new Locale( range );
+ return new Locale( range, "" );
} else {
return new Locale( range.substring( 0, dashIndex ), range.substring( dashIndex+1 ) );
}
|