Skip to content

Commit 902ddb3

Browse files
committed
style: added the missing suppressions for nullaway and findbugs
1 parent 8244be5 commit 902ddb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/io/github/mridang/codegen/AdvancedOpenAPINormalizer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.mridang.codegen;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34
import io.github.mridang.codegen.rules.*;
45
import io.swagger.v3.oas.models.OpenAPI;
56
import org.openapitools.codegen.OpenAPINormalizer;
@@ -23,7 +24,8 @@ public class AdvancedOpenAPINormalizer extends OpenAPINormalizer {
2324
private static final String RULE_ONLY_ALLOW_JSON = "ONLY_ALLOW_JSON";
2425
private static final String RULE_FILTER_PATHS = "FILTER_PATHS";
2526
private static final String RULE_GARBAGE_COLLECT = "GARBAGE_COLLECT_COMPONENTS";
26-
27+
@SuppressWarnings("HidingField")
28+
@SuppressFBWarnings("MF_CLASS_MASKS_FIELD")
2729
protected final Logger LOGGER = LoggerFactory.getLogger(AdvancedOpenAPINormalizer.class);
2830
private final Map<String, String> customRules;
2931

@@ -34,6 +36,7 @@ public class AdvancedOpenAPINormalizer extends OpenAPINormalizer {
3436
* @param inputRules A map of configuration rules that control which custom
3537
* normalizations are applied.
3638
*/
39+
@SuppressFBWarnings("EI_EXPOSE_REP2")
3740
public AdvancedOpenAPINormalizer(OpenAPI openAPI, Map<String, String> inputRules) {
3841
super(openAPI, inputRules);
3942
this.customRules = inputRules;

0 commit comments

Comments
 (0)