File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
utils/src/main/java/datadog/instrument/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1212import java .io .InputStream ;
1313import java .util .List ;
1414import java .util .MissingResourceException ;
15+ import java .util .Objects ;
1516
1617/** Methods for packing glue bytecode into strings that can be stored in the constant pool. */
1718public final class Glue {
@@ -85,10 +86,10 @@ public static byte[] unpackBytecode(String bytecode) {
8586 * @return the glue bytecode
8687 * @throws MissingResourceException if the bytecode cannot be read
8788 */
88- @ SuppressWarnings ({"Since15" , "DataFlowIssue" })
89+ @ SuppressWarnings ({"Since15" })
8990 public static byte [] loadBytecode (Class <?> host , String glueName ) {
9091 String glueResource = GLUE_RESOURCE_PREFIX + glueName ;
91- try (InputStream is = host .getResourceAsStream (glueResource )) {
92+ try (InputStream is = Objects . requireNonNull ( host .getResourceAsStream (glueResource ) )) {
9293 if (JVM .atLeastJava (9 )) {
9394 return is .readAllBytes ();
9495 } else {
You can’t perform that action at this time.
0 commit comments