spelling: effectively

Signed-off-by: Josh Soref <[email protected]>
This commit is contained in:
Josh Soref
2024-10-29 16:55:43 +01:00
committed by Jindra Petřík
parent 8317473658
commit b0ca5a8117
@@ -978,13 +978,13 @@ public class Multiname {
}
/**
* Checks if this multiname is effectively a QName. Efectively means that it
* Checks if this multiname is effectively a QName. Effectively means that it
* is a QName or QNameA or MULTINAME with only one namespace.
*
* @param thisCpool This constant pool
* @return True if it's effectively a QName
*/
private boolean isEfectivelyQname(AVM2ConstantPool thisCpool) {
private boolean isEffectivelyQname(AVM2ConstantPool thisCpool) {
return kind == QNAME || kind == QNAMEA || isMULTINAMEwithOneNs(thisCpool);
}
@@ -997,7 +997,7 @@ public class Multiname {
* @return True if this qname effectively equals to other qname
*/
public boolean qnameEquals(AVM2ConstantPool thisCpool, Multiname other, AVM2ConstantPool otherCpool) {
if (!isEfectivelyQname(thisCpool) || !other.isEfectivelyQname(otherCpool)) {
if (!isEffectivelyQname(thisCpool) || !other.isEffectivelyQname(otherCpool)) {
return false;
}
Namespace otherNs = other.getSingleNamespace(otherCpool);