cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123904 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java
Date Sun, 02 Jan 2005 21:40:58 GMT
Author: antonio
Date: Sun Jan  2 13:40:57 2005
New Revision: 123904

URL: http://svn.apache.org/viewcvs?view=rev&rev=123904
Log:
Change protected methods names to start with lowercase. Currently we changed only the protected
methods to avoid breaking compatibility.
Modified:
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java?view=diff&rev=123904&p1=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java&r1=123903&p2=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java&r2=123904
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/SimpleCharStream.java
Sun Jan  2 13:40:57 2005
@@ -18,6 +18,8 @@
 /**
  * An implementation of interface CharStream, where the stream is assumed to
  * contain only ASCII characters (without unicode processing).
+ * 
+ * @version CVS $Id$
  */
 
 public class SimpleCharStream {
@@ -41,7 +43,7 @@
     protected int maxNextCharInd = 0;
     protected int inBuf = 0;
 
-    protected void ExpandBuff(boolean wrapAround) {
+    protected void expandBuff(boolean wrapAround) {
         char[] newbuffer = new char[bufsize + 2048];
         int newbufline[] = new int[bufsize + 2048];
         int newbufcolumn[] = new int[bufsize + 2048];
@@ -127,7 +129,7 @@
         tokenBegin = 0;
     }
 
-    protected void FillBuff() throws java.io.IOException {
+    protected void fillBuff() throws java.io.IOException {
         if (maxNextCharInd == available) {
             if (available == bufsize) {
                 if (tokenBegin > 2048) {
@@ -136,11 +138,11 @@
                 } else if (tokenBegin < 0)
                     bufpos = maxNextCharInd = 0;
                 else
-                    ExpandBuff(false);
+                    expandBuff(false);
             } else if (available > tokenBegin)
                 available = bufsize;
             else if ((tokenBegin - available) < 2048)
-                ExpandBuff(true);
+                expandBuff(true);
             else
                 available = tokenBegin;
         }
@@ -175,7 +177,7 @@
         return c;
     }
 
-    protected void UpdateLineColumn(char c) {
+    protected void updateLineColumn(char c) {
         column++;
 
         if (prevCharIsLF) {
@@ -219,11 +221,11 @@
         }
 
         if (++bufpos >= maxNextCharInd)
-            FillBuff();
+            fillBuff();
 
         char c = buffer[bufpos];
 
-        UpdateLineColumn(c);
+        updateLineColumn(c);
         return (c);
     }
 

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java?view=diff&rev=123904&p1=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java&r1=123903&p2=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java&r2=123904
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer/parser/TokenMgrError.java
Sun Jan  2 13:40:57 2005
@@ -15,6 +15,10 @@
  */
 package org.apache.cocoon.components.xpointer.parser;
 
+/**
+ * @version CVS $Id$
+ *
+ */
 public class TokenMgrError extends Error {
     /*
      * Ordinals for various reasons why an Error of this type can be thrown.
@@ -107,7 +111,7 @@
      *    curchar     : the offending character
      * Note: You can customize the lexical error message by modifying this method.
      */
-    protected static String LexicalError(
+    protected static String lexicalError(
         boolean EOFSeen,
         int lexState,
         int errorLine,
@@ -165,7 +169,7 @@
         char curChar,
         int reason) {
         this(
-            LexicalError(
+            lexicalError(
                 EOFSeen,
                 lexState,
                 errorLine,

Mime
View raw message