Should have been: So instead of:
IContextService contextService = (IContextService) locator.getService(IContextService.class); you can simply write IContextService contextService = locator.getService(IContextService.class) Thanks to Gunnar for pointing that out. 2014-08-04 21:19 GMT+02:00 Lars Vogel <[email protected]>: > FYI - Early in the development of M2 I plan to add the type information to > IServiceLocator.getService. This is a tiny change but might cause > "unnecessary cast" warning message in your code if use use that interface. > > > So instead ofcontextService = locator.getService(IContextService.class) > you can simply write > contextService = (IContextService) > locator.getService(IContextService.class); > > If you see issues with this change please comment in > https://bugs.eclipse.org/bugs/show_bug.cgi?id=430981 to test you can use > https://git.eclipse.org/r/23782 which contains the the Gerrit change. >
_______________________________________________ cross-project-issues-dev mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
