|
From: <caw...@us...> - 2006-08-20 04:06:01
|
Revision: 1574 Author: cawilliams Date: 2006-08-19 21:05:53 -0700 (Sat, 19 Aug 2006) ViewCVS: http://svn.sourceforge.net/rubyeclipse/?rev=1574&view=rev Log Message: ----------- fix call to String.contains() (which is JDK 1.5) Modified Paths: -------------- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/RubyLintVisitor.java Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/RubyLintVisitor.java =================================================================== --- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/RubyLintVisitor.java 2006-08-19 23:56:24 UTC (rev 1573) +++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/RubyLintVisitor.java 2006-08-20 04:05:53 UTC (rev 1574) @@ -55,7 +55,7 @@ } String source = NodeUtil.getSource(contents, iVisited); - if (iVisited.getThenBody() == null && !source.contains("unless")) { + if (iVisited.getThenBody() == null && source.indexOf("unless") == -1) { IProblem problem = createProblem( RubyCore.COMPILER_PB_EMPTY_STATEMENT, iVisited.getPosition(), "Empty Conditional Body"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |