Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cross-project-issues-dev] Add type information to IServiceLocator.getService

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 to test you can use which contains the the Gerrit change. 

Back to the top