Preparing to merge into master

This commit is contained in:
konsoletyper 2015-03-12 22:07:24 +03:00
parent 2971efb62b
commit cd0dd134cc
3 changed files with 3 additions and 5 deletions

View File

@ -65,12 +65,10 @@
<targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
<mainClass>org.teavm.samples.async.AsyncProgram</mainClass>
<runtime>SEPARATE</runtime>
<minifying>false</minifying>
<minifying>true</minifying>
<debugInformationGenerated>true</debugInformationGenerated>
<!--
<sourceMapsGenerated>true</sourceMapsGenerated>
<sourceFilesCopied>true</sourceFilesCopied>
-->
</configuration>
</execution>
</executions>

View File

@ -73,7 +73,7 @@ public final class AsyncProgram {
private static void findPrimes() {
report("Finding primes");
boolean[] prime = new boolean[1000000];
boolean[] prime = new boolean[1000];
prime[2] = true;
prime[3] = true;
nextPrime: for (int i = 5; i < prime.length; i += 2) {

View File

@ -73,7 +73,7 @@ public class ObjectTest {
long start = System.currentTimeMillis();
final Object lock = new Object();
synchronized (lock) {
lock.wait(100);
lock.wait(110);
}
long end = System.currentTimeMillis();
assertTrue(end - start > 100);