Remove unneeded FutureCallback type 75/106275/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 30 May 2023 15:02:48 +0000 (17:02 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 30 May 2023 17:43:32 +0000 (17:43 +0000)
We do not need to specify EffectiveModelContext, which also fixes an
Eclipse warning.

Change-Id: I3033abf79b70182f767a8672efff6a2c53bee37c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SharedEffectiveModelContextFactory.java

index 63d4fe9f47ca434b3478da51a18b77671eff0e85..072a2dabf2b2eebd6eb9b1153446c4c77839668c 100644 (file)
@@ -195,7 +195,7 @@ final class SharedEffectiveModelContextFactory implements EffectiveModelContextF
         //        and react appropriately:
         //        - in case we failed certainly want to invalidate the entry
         //        - in case of success ... that's something to consider
-        Futures.addCallback(cf, new FutureCallback<EffectiveModelContext>() {
+        Futures.addCallback(cf, new FutureCallback<>() {
             @Override
             public void onSuccess(final EffectiveModelContext result) {
                 LOG.debug("Finished assembly of {} sources in {}", sources.size(), sw);