Fix and update JavaDoc entries, and correct areas with wildy inconsistent whitespace / style to the surrounding code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1492818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2013-06-13 18:52:03 +00:00
parent abd6675bcf
commit d246052993
9 changed files with 598 additions and 598 deletions

View File

@ -1280,7 +1280,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
return null;
}
public Iterator<XWPFTable> getTablesIterator() {
return tables.iterator();
}

View File

@ -78,7 +78,7 @@ public class XWPFFootnotes extends POIXMLDocumentPart {
throw new POIXMLException();
}
//get any Footnote
// Find our footnotes
for(CTFtnEdn note : ctFootnotes.getFootnoteList()) {
listFootnote.add(new XWPFFootnote(note, this));
}

View File

@ -517,4 +517,4 @@ public abstract class XWPFHeaderFooter extends POIXMLDocumentPart implements IBo
public POIXMLDocumentPart getPart() {
return this;
}
}//end class
}

View File

@ -55,7 +55,11 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.STOnOff;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextAlignment;
/**
* Sketch of XWPF paragraph class
* <p>A Paragraph within a Document, Table, Header etc.</p>
*
* <p>A paragraph has a lot of styling information, but the
* actual text (possibly along with more styling) is held on
* the child {@link XWPFRun}s.</p>
*/
public class XWPFParagraph implements IBodyElement {
private final CTP paragraph;
@ -1163,7 +1167,6 @@ public class XWPFParagraph implements IBodyElement {
* @param startPos
*/
public TextSegement searchText(String searched,PositionInParagraph startPos) {
int startRun = startPos.getRun(),
startText = startPos.getText(),
startChar = startPos.getChar();
@ -1183,6 +1186,7 @@ public class XWPFParagraph implements IBodyElement {
charPos= startChar;
else
charPos = 0;
for(; charPos<candidate.length(); charPos++){
if((candidate.charAt(charPos)==searched.charAt(0))&&(candCharPos==0)){
beginTextPos = textPos;
@ -1204,10 +1208,11 @@ public class XWPFParagraph implements IBodyElement {
return segement;
}
}
else
else {
candCharPos=0;
}
}
}
textPos++;
}
else if(o instanceof CTProofErr){
@ -1239,8 +1244,6 @@ public class XWPFParagraph implements IBodyElement {
return null;
}
/**
* get a Text
* @param segment
@ -1345,5 +1348,4 @@ public class XWPFParagraph implements IBodyElement {
}
return null;
}
}

View File

@ -583,8 +583,7 @@ public class XWPFTable implements IBodyElement {
return BodyElementType.TABLE;
}
public IBody getBody()
{
public IBody getBody() {
return part;
}