]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.workbench.search.impl/src/org/simantics/workbench/search/impl/SearchServiceFactory.java
Move platform to only work with JDK's >= 11
[simantics/platform.git] / bundles / org.simantics.workbench.search.impl / src / org / simantics / workbench / search / impl / SearchServiceFactory.java
@@ -1,4 +1,4 @@
-package org.simantics.workbench.internal.contributions.search;
+package org.simantics.workbench.search.impl;
 
 
 import org.eclipse.core.expressions.Expression;
@@ -12,9 +12,9 @@ import org.eclipse.ui.services.AbstractServiceFactory;
 import org.eclipse.ui.services.IServiceLocator;
 import org.simantics.workbench.search.ISearchService;
 
+@SuppressWarnings("restriction")
 public class SearchServiceFactory extends AbstractServiceFactory {
 
-
        @SuppressWarnings("rawtypes")
        @Override
        public Object create(Class serviceInterface, IServiceLocator parentLocator,
@@ -27,7 +27,8 @@ public class SearchServiceFactory extends AbstractServiceFactory {
                if (wb == null) {
                        return null;
                }
-               
+
+               @SuppressWarnings("unchecked")
                Object parent = parentLocator.getService(serviceInterface);
                if (parent == null) {
                        return new SearchServiceImpl();
@@ -42,7 +43,7 @@ public class SearchServiceFactory extends AbstractServiceFactory {
                        Expression parentExp = ((SlaveSearchService) parent).getDefaultExpression();
                        return new NestableSearchService((ISearchService)parent, parentExp);
                }
-               
+
                Expression exp = new ActivePartExpression(site.getPart());
                return new SlaveSearchService((ISearchService)parent, exp);
        }