tmysik commented on code in PR #8139:
URL: https://github.com/apache/netbeans/pull/8139#discussion_r1911896426
##########
php/php.editor/src/org/netbeans/modules/php/editor/csl/SemanticAnalysis.java:
##########
@@ -952,12 +810,7 @@ private boolean isDeprecatedType(QualifiedName
qualifiedName, int offset) {
if (!isCancelled() && isResolveDeprecatedElements()) {
VariableScope variableScope = model.getVariableScope(offset);
QualifiedName fullyQualifiedName =
VariousUtils.getFullyQualifiedName(qualifiedName, offset, variableScope);
- for (TypeElement typeElement : getDeprecatedTypes()) {
- if
(typeElement.getFullyQualifiedName().equals(fullyQualifiedName)) {
- isDeprecated = true;
- break;
- }
- }
+ isDeprecated =
getDeprecatedTypes().contains(fullyQualifiedName);
Review Comment:
More readable, definitely.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists