mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@Nullable
This commit is contained in:
+2
-1
@@ -65,12 +65,13 @@ public class InferredAnnotationsManagerImpl extends InferredAnnotationsManager {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private PsiAnnotation getHardcodedContractAnnotation(PsiMethod method) {
|
||||
List<MethodContract> contracts = HardcodedContracts.getHardcodedContracts(method, null);
|
||||
return contracts.isEmpty() ? null : createContractAnnotation(contracts, HardcodedContracts.isHardcodedPure(method));
|
||||
}
|
||||
|
||||
private static boolean ignoreBytecodeInference(PsiModifierListOwner owner, String annotationFQN) {
|
||||
private static boolean ignoreBytecodeInference(PsiModifierListOwner owner, @Nullable String annotationFQN) {
|
||||
if (ORG_JETBRAINS_ANNOTATIONS_CONTRACT.equals(annotationFQN) && hasHardcodedContracts(owner)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user