[Fb-contrib-commit] fb-contrib/src/com/mebigfatguy/fbcontrib/detect DateComparison.java,1.3,1.4
Brought to you by:
dbrosius
|
From: Dave B. <dbr...@us...> - 2006-03-26 03:39:29
|
Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9969/src/com/mebigfatguy/fbcontrib/detect Modified Files: DateComparison.java Log Message: guard against npes Index: DateComparison.java =================================================================== RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/DateComparison.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- DateComparison.java 26 Mar 2006 03:18:44 -0000 1.3 +++ DateComparison.java 26 Mar 2006 03:39:25 -0000 1.4 @@ -125,9 +125,9 @@ String cls = getDottedClassConstantOperand(); if (dateClasses.contains(cls)) { String methodName = getNameConstantOperand(); - if (methodName.equals( "equals" ) - || methodName.equals( "after" ) - || methodName.equals( "before" )) { + if ("equals".equals(methodName) + || "after".equals(methodName) + || "before".equals(methodName)) { state = SEEN_CMP_1; } } |