Skip to content

Commit 504cbab

Browse files
Bugfix-765: Code refactoring
1 parent ce56e41 commit 504cbab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/magento/idea/magento2plugin/linemarker/php/WebApiLineMarkerProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class WebApiLineMarkerProvider implements LineMarkerProvider {
3737
return null;
3838
}
3939

40+
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
4041
@Override
4142
public void collectSlowLineMarkers(
4243
final @NotNull List<? extends PsiElement> psiElements,
@@ -82,10 +83,11 @@ public void collectSlowLineMarkers(
8283
/**
8384
* Web API config nodes collector for service methods and classes. Has built in caching.
8485
*/
86+
@SuppressWarnings("PMD.AvoidDoubleBraceInitializationCheck")
8587
private static class WebApiRoutesCollector {
8688

8789
private final Map<String, List<XmlTag>> routesCache = new HashMap<>();
88-
private static final Map<String, Integer> HTTP_METHODS_SORT_ORDER = new HashMap<>() {//NOPMD
90+
private static final Map<String, Integer> HTTP_METHODS_SORT_ORDER = new HashMap<>() {
8991
{
9092
put("GET", 1);
9193
put("PUT", 2);

0 commit comments

Comments
 (0)