Apply suggestions from code review

Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
This commit is contained in:
Tony Torralba
2021-06-30 11:49:31 +02:00
parent c13bf2a2a1
commit a2e9c2f4ab
2 changed files with 2 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ class MailSessionGetInstanceMethod extends Method {
}
/**
* A subtype of the class `org.apache.commons.mail.Mail`
* A subtype of the class `org.apache.commons.mail.Email`
*/
class ApacheEmail extends Class {
ApacheEmail() { this.getASupertype*().hasQualifiedName("org.apache.commons.mail", "Email") }

View File

@@ -56,9 +56,7 @@ predicate hasSslCertificateCheck(VarAccess va) {
private string getStringValue(Expr expr) {
result = expr.(CompileTimeConstantExpr).getStringValue()
or
result = getStringValue(expr.(AddExpr).getLeftOperand())
or
result = getStringValue(expr.(AddExpr).getRightOperand())
result = getStringValue(expr.(AddExpr).getAnOperand())
}
/**