/src/main/java/org/htmlunit/ProxyAutoConfig.java
if ( month != ( -1) ) {   calendar.set( MONTH, month) ; }
[Delete]
if (day != -1) { calendar.set(Calendar.DAY_OF_MONTH, day); } if (month != -1) { calendar.set(Calendar.MONTH, month); } <extra_id_0> calendar.set(Calendar.YEAR, year); } return calendar; } private static int getSmallInt(final Object object) { final String s = JavaScriptEngine.toString(object);