in src/main/java/org/apache/sling/servlets/resolver/internal/helper/ResourceCollector.java [158:188]
public ResourceCollector(
final String methodName,
final String baseResourceType,
final Resource resource,
final String extension,
final String[] executionPaths,
final boolean useResourceCaching) {
super(
(baseResourceType != null ? baseResourceType : ServletResolverConstants.DEFAULT_RESOURCE_TYPE),
resource.getResourceType(),
resource.getResourceSuperType(),
extension,
executionPaths,
useResourceCaching);
this.methodName = methodName;
this.requestSelectors = new String[0];
this.numRequestSelectors = 0;
this.isGet = false;
this.isDefaultExtension = false;
this.suffExt = "." + extension;
this.suffMethod = "." + methodName;
this.suffExtMethod = suffExt + suffMethod;
// create the hash code once
final String key = methodName + ':' + baseResourceType + ':'
+ extension + "::"
+ (this.resourceType == null ? "" : this.resourceType) + ':'
+ (this.resourceSuperType == null ? "" : this.resourceSuperType);
this.hashCode = key.hashCode();
}