Author: alexsmirnov
Date: 2010-11-22 18:44:11 -0500 (Mon, 22 Nov 2010)
New Revision: 20140
Modified:
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/DynamicResourcesScanner.java
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/StaticResourcesScanner.java
Log:
CODING IN PROGRESS - issue RF-9799: CSV code review
https://jira.jboss.org/browse/RF-9799
Modified:
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/DynamicResourcesScanner.java
===================================================================
---
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/DynamicResourcesScanner.java 2010-11-22
20:13:07 UTC (rev 20139)
+++
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/DynamicResourcesScanner.java 2010-11-22
23:44:11 UTC (rev 20140)
@@ -54,7 +54,7 @@
@Override
public ResourceKey apply(Class<?> from) {
- ResourceKey key = new ResourceKey(from.getName());
+ ResourceKey key = ResourceKey.create(from.getName());
return key;
}
Modified:
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/StaticResourcesScanner.java
===================================================================
---
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/StaticResourcesScanner.java 2010-11-22
20:13:07 UTC (rev 20139)
+++
branches/RF-8742-1/cdk/maven-resources-plugin/src/main/java/org/richfaces/cdk/resource/scan/impl/StaticResourcesScanner.java 2010-11-22
23:44:11 UTC (rev 20140)
@@ -52,7 +52,7 @@
Collection<VirtualFile> children = file.getChildren();
for (VirtualFile child : children) {
if (child.isFile()) {
- resources.add(new ResourceKey(child.getName()));
+ resources.add(ResourceKey.create(child.getName()));
} else {
String libraryName = child.getName();
VirtualFile libraryDir = ResourceUtil.getLatestVersion(child, true);