Skip to content

Commit 83efce1

Browse files
Removed restriction by @api declaration in the class Doc.
1 parent 761f61f commit 83efce1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/com/magento/idea/magento2plugin/actions/generation/NewWebApiDeclarationAction.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@ public void update(final @NotNull AnActionEvent event) {
4747
return;
4848
}
4949

50-
final PhpDocComment classDocComment = method.getContainingClass().getDocComment();
51-
5250
if (!method.getAccess().isPublic()
53-
|| method.getName().equals(MagentoPhpClass.CONSTRUCT_METHOD_NAME)
54-
|| classDocComment == null
55-
|| !classDocComment.getText().contains("@api")) {
51+
|| method.getName().equals(MagentoPhpClass.CONSTRUCT_METHOD_NAME)) {
5652
return;
5753
}
5854

0 commit comments

Comments
 (0)