A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / phpdoc / PHPDocBufferCommentReader.java
index 845ff0d..1e5ccc2 100644 (file)
@@ -13,29 +13,30 @@ package net.sourceforge.phpdt.internal.corext.phpdoc;
 import net.sourceforge.phpdt.core.IBuffer;
 import net.sourceforge.phpdt.internal.corext.util.Strings;
 
-
 /**
- * Reads a phpdoc comment from a phpdoc comment. Skips star-character
- * on begin of line
+ * Reads a phpdoc comment from a phpdoc comment. Skips star-character on begin
+ * of line
  */
 public class PHPDocBufferCommentReader extends SingleCharReader {
 
        private IBuffer fBuffer;
-       
+
        private int fCurrPos;
+
        private int fStartPos;
+
        private int fEndPos;
-       
+
        private boolean fWasNewLine;
-               
+
        public PHPDocBufferCommentReader(IBuffer buf, int start, int end) {
-               fBuffer= buf;
-               fStartPos= start + 3;
-               fEndPos= end - 2;
-               
+               fBuffer = buf;
+               fStartPos = start + 3;
+               fEndPos = end - 2;
+
                reset();
        }
-               
+
        /**
         * @see java.io.Reader#read()
         */
@@ -44,41 +45,40 @@ public class PHPDocBufferCommentReader extends SingleCharReader {
                        char ch;
                        if (fWasNewLine) {
                                do {
-                                       ch= fBuffer.getChar(fCurrPos++);
+                                       ch = fBuffer.getChar(fCurrPos++);
                                } while (fCurrPos < fEndPos && Character.isWhitespace(ch));
                                if (ch == '*') {
                                        if (fCurrPos < fEndPos) {
                                                do {
-                                                       ch= fBuffer.getChar(fCurrPos++);
+                                                       ch = fBuffer.getChar(fCurrPos++);
                                                } while (ch == '*');
                                        } else {
                                                return -1;
                                        }
                                }
                        } else {
-                               ch= fBuffer.getChar(fCurrPos++);
+                               ch = fBuffer.getChar(fCurrPos++);
                        }
-                       fWasNewLine= Strings.isLineDelimiterChar(ch);
-                       
+                       fWasNewLine = Strings.isLineDelimiterChar(ch);
+
                        return ch;
                }
                return -1;
        }
-               
+
        /**
         * @see java.io.Reader#close()
-        */             
+        */
        public void close() {
-               fBuffer= null;
+               fBuffer = null;
        }
-       
+
        /**
         * @see java.io.Reader#reset()
-        */             
+        */
        public void reset() {
-               fCurrPos= fStartPos;
-               fWasNewLine= true;
-       }       
-               
-               
+               fCurrPos = fStartPos;
+               fWasNewLine = true;
+       }
+
 }