1"""Macro wrapping the java_library for bp2build. """ 2 3def java_library(name = "", srcs = [], deps = [], javacopts = [], **kwargs): 4 # Disable the error prone check of HashtableContains by default. See https://errorprone.info/bugpattern/HashtableContains 5 # HashtableContains error is reported when compiling //external/bouncycastle:bouncycastle-bcpkix-unbundled 6 opts = ["-Xep:HashtableContains:OFF"] + javacopts 7 8 native.java_library(name, srcs = srcs, deps = deps, javacopts = opts, **kwargs) 9