/**
* Create an instance of an escher shape path property.
*
- * @param propertyNumber which property to handle
- * @param shapePath which shape path to handle
+ * @param propertyNumber which property to handle
+ * @param shapePath which shape path to handle
*/
public EscherShapePathProperty( short propertyNumber, int shapePath ) {
super( propertyNumber, false, false, shapePath );
/**
* Clones the given ClassID
- *
- * @param other The ClassID to use a base for creating this one
+ *
+ * @param other The ClassID to use a base for creating this one
*/
public ClassID(ClassID other) {
System.arraycopy(other.bytes, 0, bytes, 0, bytes.length);
}
/**
- * @return The type of the cached value or CellType.NUMERIC.getCode() if the cached value is empty
- *
+ * @return The type of the cached value or CellType.NUMERIC.getCode() if the cached value is empty
+ *
* @deprecated POI 5.0.0, will be removed in 6.0, use getCachedResultTypeEnum until switch to enum is fully done
*/
@Deprecated
/**
* Returns the type of the cached result
- *
- * @return The type of the cached value or CellType.NUMERIC if the cached value is empty
+ *
+ * @return The type of the cached value or CellType.NUMERIC if the cached value is empty
* @since POI 5.0.0
*/
public CellType getCachedResultTypeEnum() {
values.put("18-Jan-2019", 43483.);
for (String str : values.keySet()) {
- try {
- assertEquals(OperandResolver.coerceValueToDouble(new StringEval(str)), values.get(str), 0.00001);
- } catch (EvaluationException e) {
- fail("While handling: " + str + ". "
- + "This failure can indicate that the wrong locale is used during test-execution, "
- + "ensure you run with english/US via -Duser.language=en -Duser.country=US. "
- + "Having: " + System.getProperty("user.language") + "/" + System.getProperty("user.country"), e);
- }
+ try {
+ assertEquals(OperandResolver.coerceValueToDouble(new StringEval(str)), values.get(str), 0.00001);
+ } catch (EvaluationException e) {
+ fail("While handling: " + str + ". "
+ + "This failure can indicate that the wrong locale is used during test-execution, "
+ + "ensure you run with english/US via -Duser.language=en -Duser.country=US. "
+ + "Having: " + System.getProperty("user.language") + "/" + System.getProperty("user.country"), e);
+ }
}
}
CellFormatResult result = cfmt.apply(cellValueO);
assertEquals(" 1,234.56 ", result.text,
"This failure can indicate that the wrong locale is used during test-execution, "
- + "ensure you run with english/US via -Duser.language=en -Duser.country=US. "
- + "Having: " + System.getProperty("user.language") + "/" + System.getProperty("user.country"));
+ + "ensure you run with english/US via -Duser.language=en -Duser.country=US. "
+ + "Having: " + System.getProperty("user.language") + "/" + System.getProperty("user.country"));
}
/**