Some JavaDoc adjustments, typos, IntelliJ warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1814587 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2017-11-08 14:59:08 +00:00
parent 888a08b98d
commit 76d11ac37e
7 changed files with 16 additions and 18 deletions

View File

@ -84,7 +84,7 @@ public class EvaluationConditionalFormatRule implements Comparable<EvaluationCon
private final String formula2; private final String formula2;
private final OperatorEnum operator; private final OperatorEnum operator;
private final ConditionType type; private final ConditionType type;
// cached for performance, to avoid reading the XMLBean every time a conditinally formatted cell is rendered // cached for performance, to avoid reading the XMLBean every time a conditionally formatted cell is rendered
private final ExcelNumberFormat numberFormat; private final ExcelNumberFormat numberFormat;
/** /**

View File

@ -42,7 +42,7 @@ public final class Mode implements Function {
* Double.NaN. Else returns the value that occurs most times and if there is * Double.NaN. Else returns the value that occurs most times and if there is
* a tie, returns the first such value. * a tie, returns the first such value.
* *
* @param v * @param v An array of values on which the mode is computed.
*/ */
public static double evaluate(double[] v) throws EvaluationException { public static double evaluate(double[] v) throws EvaluationException {
if (v.length < 2) { if (v.length < 2) {

View File

@ -137,7 +137,7 @@ public class DataFormatter implements Observer {
* A regex to find locale patterns like [$$-1009] and [$?-452]. * A regex to find locale patterns like [$$-1009] and [$?-452].
* Note that we don't currently process these into locales * Note that we don't currently process these into locales
*/ */
private static final Pattern localePatternGroup = Pattern.compile("(\\[\\$[^-\\]]*-[0-9A-Z]+\\])"); private static final Pattern localePatternGroup = Pattern.compile("(\\[\\$[^-\\]]*-[0-9A-Z]+])");
/** /**
* A regex to match the colour formattings rules. * A regex to match the colour formattings rules.

View File

@ -268,7 +268,7 @@ public interface Sheet extends Iterable<Row> {
*/ */
public CellStyle getColumnStyle(int column); public CellStyle getColumnStyle(int column);
/** /*
* Sets the CellStyle that applies to the given * Sets the CellStyle that applies to the given
* (0 based) column. * (0 based) column.
*/ */
@ -810,7 +810,7 @@ public interface Sheet extends Iterable<Row> {
/** /**
* Removes the page break at the indicated row * Removes the page break at the indicated row
* @param row * @param row The 0-based index of the row.
*/ */
void removeRowBreak(int row); void removeRowBreak(int row);
@ -848,7 +848,7 @@ public interface Sheet extends Iterable<Row> {
/** /**
* Removes a page break at the indicated column * Removes a page break at the indicated column
* @param column * @param column The 0-based index of the column.
*/ */
void removeColumnBreak(int column); void removeColumnBreak(int column);
@ -1139,8 +1139,8 @@ public interface Sheet extends Iterable<Row> {
/** /**
* Get a Hyperlink in this sheet anchored at row, column * Get a Hyperlink in this sheet anchored at row, column
* *
* @param row * @param row The 0-based index of the row to look at.
* @param column * @param column The 0-based index of the column to look at.
* @return hyperlink if there is a hyperlink anchored at row, column; otherwise returns null * @return hyperlink if there is a hyperlink anchored at row, column; otherwise returns null
*/ */
public Hyperlink getHyperlink(int row, int column); public Hyperlink getHyperlink(int row, int column);

View File

@ -131,13 +131,13 @@ public final class NumberComparer {
* If both numbers are subnormal, Excel seems to use standard comparison rules * If both numbers are subnormal, Excel seems to use standard comparison rules
*/ */
private static int compareSubnormalNumbers(long fracA, long fracB, boolean isNegative) { private static int compareSubnormalNumbers(long fracA, long fracB, boolean isNegative) {
int cmp = Long.compare(fracA, fracB); if(isNegative) {
return Long.compare(fracB, fracA);
return isNegative ? -cmp : cmp; } else {
return Long.compare(fracA, fracB);
}
} }
/** /**
* Usually any normal number is greater (in magnitude) than any subnormal number. * Usually any normal number is greater (in magnitude) than any subnormal number.
* However there are some anomalous cases around the threshold where Excel produces screwy results * However there are some anomalous cases around the threshold where Excel produces screwy results
@ -164,8 +164,6 @@ public final class NumberComparer {
return isNegative ? -1 : +1; return isNegative ? -1 : +1;
} }
/** /**
* for formatting double values in error messages * for formatting double values in error messages
*/ */

View File

@ -42,7 +42,7 @@ public final class Chunk {
protected CommandDefinition[] commandDefinitions; protected CommandDefinition[] commandDefinitions;
/** The command+value pairs we hold */ /** The command+value pairs we hold */
private Command[] commands; private Command[] commands;
/** The blocks (if any) we hold */ /* The blocks (if any) we hold */
//private Block[] blocks //private Block[] blocks
/** The name of the chunk, as found from the commandDefinitions */ /** The name of the chunk, as found from the commandDefinitions */
private String name; private String name;
@ -265,7 +265,7 @@ public final class Chunk {
public CommandDefinition getDefinition() { return definition; } public CommandDefinition getDefinition() { return definition; }
public Object getValue() { return value; } public Object getValue() { return value; }
} }
/** /*
* A special kind of command that is an artificat of how we * A special kind of command that is an artificat of how we
* process CommandDefinitions, and so doesn't actually exist * process CommandDefinitions, and so doesn't actually exist
* in the chunk * in the chunk

View File

@ -182,7 +182,7 @@ public class SectionTable
{ {
int offset = wordDocumentStream.size(); int offset = wordDocumentStream.size();
int len = _sections.size(); //int len = _sections.size();
PlexOfCps plex = new PlexOfCps(SED_SIZE); PlexOfCps plex = new PlexOfCps(SED_SIZE);
for (SEPX sepx : _sections) { for (SEPX sepx : _sections) {