Author: rfrovarp
Date: Thu Mar 20 13:25:18 2008
New Revision: 639437
URL: http://svn.apache.org/viewvc?rev=639437&view=rev
Log:
Changed unecessary inner classes to static nested classes for better performance.
Modified:
lenya/trunk/src/impl/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java
lenya/trunk/src/modules-core/templating/java/src/org/apache/lenya/cms/publication/templating/PublicationTemplateManagerImpl.java
lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformerOptimized.java
Modified: lenya/trunk/src/impl/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java?rev=639437&r1=639436&r2=639437&view=diff
==============================================================================
--- lenya/trunk/src/impl/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java (original)
+++ lenya/trunk/src/impl/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java Thu Mar 20 13:25:18 2008
@@ -662,7 +662,7 @@
* Abstract base class for document visitors which operate on a source and
* target document.
*/
- public abstract class SourceTargetVisitor implements DocumentVisitor {
+ public static abstract class SourceTargetVisitor implements DocumentVisitor {
private DocumentLocator rootSource;
private DocumentLocator rootTarget;
@@ -768,7 +768,7 @@
/**
* Visitor to delete documents.
*/
- public class DeleteVisitor implements DocumentVisitor {
+ public static class DeleteVisitor implements DocumentVisitor {
private DocumentManager manager;
Modified: lenya/trunk/src/modules-core/templating/java/src/org/apache/lenya/cms/publication/templating/PublicationTemplateManagerImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/templating/java/src/org/apache/lenya/cms/publication/templating/PublicationTemplateManagerImpl.java?rev=639437&r1=639436&r2=639437&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/templating/java/src/org/apache/lenya/cms/publication/templating/PublicationTemplateManagerImpl.java (original)
+++ lenya/trunk/src/modules-core/templating/java/src/org/apache/lenya/cms/publication/templating/PublicationTemplateManagerImpl.java Thu Mar 20 13:25:18 2008
@@ -204,7 +204,7 @@
/**
* Searches for a declared service of the form "publicationId/service".
*/
- public class ExistingServiceVisitor implements PublicationVisitor {
+ public static class ExistingServiceVisitor implements PublicationVisitor {
/**
* Ctor.
Modified: lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformerOptimized.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformerOptimized.java?rev=639437&r1=639436&r2=639437&view=diff
==============================================================================
--- lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformerOptimized.java (original)
+++ lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformerOptimized.java Thu Mar 20 13:25:18 2008
@@ -499,7 +499,7 @@
this.bodyDocument = null;
}
- class IndexHelperField {
+ static class IndexHelperField {
String localName;
StringBuffer text;
@@ -529,7 +529,7 @@
}
}
- class IndexerConfiguration {
+ static class IndexerConfiguration {
String analyzerClassname;
String indexDirectory;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.