Merge pull request #3464 from T45K/fix-typo

Fix typo
This commit is contained in:
温绍锦
2020-10-08 17:50:26 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -119,7 +119,7 @@ public class DefaultJSONParser implements Closeable {
this.dateFormat = null;
}
public void setDateFomrat(DateFormat dateFormat) {
public void setDateFormat(DateFormat dateFormat) {
this.dateFormat = dateFormat;
}
@@ -65,7 +65,7 @@ public class DefaultJSONParserTest_date extends TestCase {
SimpleDateFormat format = new SimpleDateFormat("yyyy-DD-mm", JSON.defaultLocale);
format.setTimeZone(JSON.defaultTimeZone);
parser.setDateFomrat(format);
parser.setDateFormat(format);
parser.getDateFomartPattern();
parser.getDateFormat();
parser.parse();