Skip to content

Commit e7a24b4

Browse files
hduelmefiliphr
authored andcommitted
use String equals directly instead of Objects.equals
1 parent a99bfac commit e7a24b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/mapstruct/intellij/util/MapstructAnnotationUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ private static boolean isValueMappingPsiAnnotation(PsiAnnotationMemberValue memb
420420
* {@code false} otherwise
421421
*/
422422
private static boolean isValueMappingAnnotation(PsiAnnotation psiAnnotation) {
423-
return Objects.equals( psiAnnotation.getQualifiedName(), VALUE_MAPPING_ANNOTATION_FQN );
423+
return VALUE_MAPPING_ANNOTATION_FQN.equals( psiAnnotation.getQualifiedName() );
424424
}
425425

426426
/**
@@ -430,7 +430,7 @@ private static boolean isValueMappingAnnotation(PsiAnnotation psiAnnotation) {
430430
* false} otherwise
431431
*/
432432
private static boolean isMappingAnnotation(PsiAnnotation psiAnnotation) {
433-
return Objects.equals( psiAnnotation.getQualifiedName(), MAPPING_ANNOTATION_FQN );
433+
return MAPPING_ANNOTATION_FQN.equals( psiAnnotation.getQualifiedName() );
434434
}
435435

436436
/**

0 commit comments

Comments
 (0)