Author: sseifert
Date: Wed Oct 1 08:27:26 2014
New Revision: 1628638
URL: http://svn.apache.org/r1628638
Log:
eliminate some warnings due to deprecated API methods
Modified:
sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/ProcessorManagerImpl.java
Modified:
sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/ProcessorManagerImpl.java
URL:
http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/ProcessorManagerImpl.java?rev=1628638&r1=1628637&r2=1628638&view=diff
==============================================================================
---
sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/ProcessorManagerImpl.java
(original)
+++
sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/ProcessorManagerImpl.java
Wed Oct 1 08:27:26 2014
@@ -37,7 +37,6 @@ import org.apache.sling.api.resource.Log
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.api.resource.ResourceResolverFactory;
-import org.apache.sling.api.resource.ResourceUtil;
import org.apache.sling.rewriter.PipelineConfiguration;
import org.apache.sling.rewriter.ProcessingContext;
import org.apache.sling.rewriter.Processor;
@@ -196,17 +195,17 @@ public class ProcessorManagerImpl
final Resource spResource =
this.resourceResolver.getResource(path.substring(0, path.length() - 1));
if ( spResource != null ) {
// now iterate over the child nodes
- final Iterator<Resource> spIter =
ResourceUtil.listChildren(spResource);
+ final Iterator<Resource> spIter = spResource.listChildren();
while ( spIter.hasNext() ) {
// check if the node has a rewriter config
final Resource appResource = spIter.next();
final Resource parentResource =
this.resourceResolver.getResource(appResource.getPath() + CONFIG_PATH);
if ( parentResource != null ) {
// now read configs
- final Iterator<Resource> iter =
ResourceUtil.listChildren(parentResource);
+ final Iterator<Resource> iter =
parentResource.listChildren();
while ( iter.hasNext() ) {
final Resource configResource = iter.next();
- final String key =
ResourceUtil.getName(configResource);
+ final String key = configResource.getName();
final ProcessorConfigurationImpl config =
this.getProcessorConfiguration(configResource);
this.log.debug("Found new processor configuration
{}", config);
this.addProcessor(key, configResource.getPath(),
config);