You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2019/01/25 20:43:10 UTC
[freemarker] 02/02: (Other places where "multipier" was written
instead of "multiplier"... these are just internal things though.)
This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git
commit a643276ab2af3d29bd3a4e5a2c3300139cd1b32b
Author: ddekany <dd...@apache.org>
AuthorDate: Fri Jan 25 21:43:01 2019 +0100
(Other places where "multipier" was written instead of "multiplier"... these are just internal things though.)
---
src/main/java/freemarker/template/Configuration.java | 14 +++++++-------
src/main/misc/overloadedNumberRules/README.txt | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/java/freemarker/template/Configuration.java b/src/main/java/freemarker/template/Configuration.java
index 98ce116..2f19645 100644
--- a/src/main/java/freemarker/template/Configuration.java
+++ b/src/main/java/freemarker/template/Configuration.java
@@ -3308,25 +3308,25 @@ public class Configuration extends Configurable implements Cloneable, ParserConf
}
} else if (TEMPLATE_UPDATE_DELAY_KEY_SNAKE_CASE.equals(name)
|| TEMPLATE_UPDATE_DELAY_KEY_CAMEL_CASE.equals(name)) {
- long multipier;
+ long multiplier;
String valueWithoutUnit;
if (value.endsWith("ms")) {
- multipier = 1;
+ multiplier = 1;
valueWithoutUnit = rightTrim(value.substring(0, value.length() - 2));
} else if (value.endsWith("s")) {
- multipier = 1000;
+ multiplier = 1000;
valueWithoutUnit = rightTrim(value.substring(0, value.length() - 1));
} else if (value.endsWith("m")) {
- multipier = 1000 * 60;
+ multiplier = 1000 * 60;
valueWithoutUnit = rightTrim(value.substring(0, value.length() - 1));
} else if (value.endsWith("h")) {
- multipier = 1000 * 60 * 60;
+ multiplier = 1000 * 60 * 60;
valueWithoutUnit = rightTrim(value.substring(0, value.length() - 1));
} else {
- multipier = 1000; // Default is seconds for backward compatibility
+ multiplier = 1000; // Default is seconds for backward compatibility
valueWithoutUnit = value;
}
- setTemplateUpdateDelayMilliseconds(Integer.parseInt(valueWithoutUnit) * multipier);
+ setTemplateUpdateDelayMilliseconds(Integer.parseInt(valueWithoutUnit) * multiplier);
} else if (TAG_SYNTAX_KEY_SNAKE_CASE.equals(name) || TAG_SYNTAX_KEY_CAMEL_CASE.equals(name)) {
if ("auto_detect".equals(value) || "autoDetect".equals(value)) {
setTagSyntax(AUTO_DETECT_TAG_SYNTAX);
diff --git a/src/main/misc/overloadedNumberRules/README.txt b/src/main/misc/overloadedNumberRules/README.txt
index 47f078b..34f6aeb 100644
--- a/src/main/misc/overloadedNumberRules/README.txt
+++ b/src/main/misc/overloadedNumberRules/README.txt
@@ -31,4 +31,4 @@ Usage:
6. Copy-pase its content into `OverloadedNumberUtil.java`.
7. Ensure that the value of OverloadedNumberUtil.BIG_MANTISSA_LOSS_PRICE
still matches the value coming from the ODS and the cellValue
- multipier coming from generator.ftl.
\ No newline at end of file
+ multiplier coming from generator.ftl.
\ No newline at end of file