-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade versions of dependencies. Upgrade tzdata, CLDR and UnicodeData
- Loading branch information
1 parent
40b29cd
commit daa5384
Showing
12 changed files
with
7,368 additions
and
135 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
classlib/src/main/java/org/teavm/classlib/impl/tz/DateTimeZoneProviderGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2017 Alexey Andreev. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.teavm.classlib.impl.tz; | ||
|
||
import java.io.IOException; | ||
import org.teavm.backend.javascript.codegen.SourceWriter; | ||
import org.teavm.backend.javascript.spi.Generator; | ||
import org.teavm.backend.javascript.spi.GeneratorContext; | ||
import org.teavm.model.MethodReference; | ||
|
||
public class DateTimeZoneProviderGenerator implements Generator { | ||
@Override | ||
public void generate(GeneratorContext context, SourceWriter writer, MethodReference methodRef) throws IOException { | ||
boolean autodetect = Boolean.parseBoolean( | ||
context.getProperties().getProperty("java.util.TimeZone.autodetect", "false")); | ||
writer.append("return " + Boolean.toString(autodetect) + ";"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-311 KB
classlib/src/main/resources/org/teavm/classlib/impl/tz/tzdata2015d.zip
Binary file not shown.
Binary file added
BIN
+339 KB
classlib/src/main/resources/org/teavm/classlib/impl/tz/tzdata2017b.zip
Binary file not shown.
Oops, something went wrong.