minor: @SuppressWarnings re. Java Generics warning in ClassPathScanner
authorMichael Vorburger <mike@vorburger.ch>
Sat, 22 Dec 2018 01:18:50 +0000 (02:18 +0100)
committerMichael Vorburger <mike@vorburger.ch>
Wed, 1 Jul 2020 23:38:13 +0000 (01:38 +0200)
Signed-off-by: Michael Vorburger <mike@vorburger.ch>
src/main/java/org/opendaylight/infrautils/inject/guice/GuiceClassPathBinder.java

index 73971581f3f58ee5250d542f8f8808efbbea35dc..430a8a35bfebb37fd8236cc106e498129e7366a7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -27,6 +27,7 @@ public class GuiceClassPathBinder {
      * @param prefix the package prefix of Singleton implementations to consider
      * @param binder The binder to set up.
      */
+    @SuppressWarnings("unchecked")
     public void bindAllSingletons(String prefix, Binder binder) {
         scanner.bindAllSingletons(prefix, (contract, implementation) -> binder.bind(contract).to(implementation));
     }