xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r1225583 - in /xalan/java/trunk/src/org/apache: xalan/extensions/ xalan/lib/ xalan/lib/sql/ xalan/xslt/ xalan/xsltc/cmdline/ xalan/xsltc/compiler/ xalan/xsltc/compiler/util/ xalan/xsltc/dom/ xalan/xsltc/runtime/ xalan/xsltc/trax/ xml/dtm/ x...
Date Thu, 29 Dec 2011 16:08:00 GMT
Author: mrglavas
Date: Thu Dec 29 16:08:00 2011
New Revision: 1225583

URL: http://svn.apache.org/viewvc?rev=1225583&view=rev
Log:
Minor performance improvement. Use String.lastIndexOf(int) instead of String.lastIndexOf(String).

Modified:
    xalan/java/trunk/src/org/apache/xalan/extensions/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/lib/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/lib/sql/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xslt/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xsltc/cmdline/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/util/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xsltc/dom/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xsltc/runtime/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xalan/xsltc/trax/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xml/dtm/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xml/dtm/ref/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xml/serializer/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xml/utils/ObjectFactory.java
    xalan/java/trunk/src/org/apache/xpath/functions/ObjectFactory.java

Modified: xalan/java/trunk/src/org/apache/xalan/extensions/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/extensions/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/extensions/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/extensions/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/lib/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/lib/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/lib/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/lib/ObjectFactory.java Thu Dec 29 16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/lib/sql/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/lib/sql/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/lib/sql/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/lib/sql/ObjectFactory.java Thu Dec 29 16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xslt/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xslt/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xslt/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xslt/ObjectFactory.java Thu Dec 29 16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/cmdline/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/cmdline/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/cmdline/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/cmdline/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/util/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/util/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/util/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/util/ObjectFactory.java Thu Dec 29
16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/dom/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/dom/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/dom/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/dom/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/runtime/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/runtime/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/runtime/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/runtime/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/trax/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/trax/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/trax/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/trax/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ObjectFactory.java Thu Dec 29 16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/ObjectFactory.java Thu Dec 29 16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xml/serializer/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/serializer/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/serializer/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xml/serializer/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -477,7 +477,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xml/utils/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/utils/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/utils/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xml/utils/ObjectFactory.java Thu Dec 29 16:08:00 2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);

Modified: xalan/java/trunk/src/org/apache/xpath/functions/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xpath/functions/ObjectFactory.java?rev=1225583&r1=1225582&r2=1225583&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xpath/functions/ObjectFactory.java (original)
+++ xalan/java/trunk/src/org/apache/xpath/functions/ObjectFactory.java Thu Dec 29 16:08:00
2011
@@ -478,7 +478,7 @@ final class ObjectFactory {
         SecurityManager security = System.getSecurityManager();
         try{
                 if (security != null){
-                    final int lastDot = className.lastIndexOf(".");
+                    final int lastDot = className.lastIndexOf('.');
                     String packageName = className;
                     if (lastDot != -1) packageName = className.substring(0, lastDot);
                     security.checkPackageAccess(packageName);



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message