@Test public void testCloseQuote() { assertTrue(FindSqlInjection.isCloseQuote("'")); assertTrue(FindSqlInjection.isCloseQuote("' ")); assertTrue(FindSqlInjection.isCloseQuote("',")); assertTrue(FindSqlInjection.isCloseQuote("')")); assertFalse(FindSqlInjection.isCloseQuote("'abc'")); assertFalse(FindSqlInjection.isCloseQuote("='abc'")); }
public static boolean isCloseQuote(String s) { return closeQuotePattern.matcher(s).find(); }
FindSqlInjection implements Detector { public static boolean isCloseQuote(String s) { return closeQuotePattern.matcher(s).find(); } }
FindSqlInjection implements Detector { public static boolean isCloseQuote(String s) { return closeQuotePattern.matcher(s).find(); } FindSqlInjection(BugReporter bugReporter); }
FindSqlInjection implements Detector { public static boolean isCloseQuote(String s) { return closeQuotePattern.matcher(s).find(); } FindSqlInjection(BugReporter bugReporter); @Override void visitClassContext(ClassContext classContext); static boolean isOpenQuote(String s); static boolean isCloseQuote(String s); @Override void report(); }
FindSqlInjection implements Detector { public static boolean isCloseQuote(String s) { return closeQuotePattern.matcher(s).find(); } FindSqlInjection(BugReporter bugReporter); @Override void visitClassContext(ClassContext classContext); static boolean isOpenQuote(String s); static boolean isCloseQuote(String s); @Override void report();  }