Skip to content
Permalink
Browse files
use indexOf char
  • Loading branch information
olamy committed Jul 8, 2012
1 parent 830f8be commit 5933d99c50a1b37478673f750b93299d96a67c5b
Showing 1 changed file with 3 additions and 3 deletions.
@@ -141,15 +141,15 @@ private boolean checkDayOfMonthField( String dayOfMonthField )
return true;
}

if ( dayOfMonthField.indexOf( "L" ) >= 0 )
if ( dayOfMonthField.indexOf( 'L' ) >= 0 )
{
return checkFieldWithLetter( dayOfMonthField, "L", 1, 7, -1, -1 );
}
else if ( dayOfMonthField.indexOf( "W" ) >= 0 )
else if ( dayOfMonthField.indexOf( 'W' ) >= 0 )
{
return checkFieldWithLetter( dayOfMonthField, "W", 1, 31, -1, -1 );
}
else if ( dayOfMonthField.indexOf( "C" ) >= 0 )
else if ( dayOfMonthField.indexOf( 'C' ) >= 0 )
{
return checkFieldWithLetter( dayOfMonthField, "C", 1, 31, -1, -1 );
}

0 comments on commit 5933d99

Please sign in to comment.