mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Clean-up project
This commit is contained in:
parent
a0b38c5d5e
commit
844da6760c
|
@ -80,7 +80,6 @@ public class TObject {
|
||||||
public final void wait0(long timeout, int nanos) throws TInterruptedException {
|
public final void wait0(long timeout, int nanos) throws TInterruptedException {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
@Rename("wait")
|
@Rename("wait")
|
||||||
public final void wait0() throws TInterruptedException {
|
public final void wait0() throws TInterruptedException {
|
||||||
}
|
}
|
||||||
|
|
|
@ -432,7 +432,6 @@ abstract class TAbstractCharClass extends TSpecialToken {
|
||||||
chCl.lowHighSurrogates.set(0, SURROGATE_CARDINALITY);
|
chCl.lowHighSurrogates.set(0, SURROGATE_CARDINALITY);
|
||||||
}
|
}
|
||||||
chCl.mayContainSupplCodepoints = mayContainSupplCodepoints;
|
chCl.mayContainSupplCodepoints = mayContainSupplCodepoints;
|
||||||
;
|
|
||||||
return chCl;
|
return chCl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,6 @@ public class JarFileResourceProvider implements ResourceProvider {
|
||||||
@Override
|
@Override
|
||||||
public InputStream openResource(String name) {
|
public InputStream openResource(String name) {
|
||||||
try {
|
try {
|
||||||
@SuppressWarnings("resource")
|
|
||||||
JarInputStream input = new JarInputStream(new FileInputStream(file));
|
JarInputStream input = new JarInputStream(new FileInputStream(file));
|
||||||
while (true) {
|
while (true) {
|
||||||
ZipEntry entry = input.getNextEntry();
|
ZipEntry entry = input.getNextEntry();
|
||||||
|
|
|
@ -40,7 +40,6 @@ public class DirectorySourceFileProvider implements SourceFileProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("resource")
|
|
||||||
public InputStream openSourceFile(String fullPath) throws IOException {
|
public InputStream openSourceFile(String fullPath) throws IOException {
|
||||||
File file = new File(baseDirectory, fullPath);
|
File file = new File(baseDirectory, fullPath);
|
||||||
return file.exists() ? new FileInputStream(file) : null;
|
return file.exists() ? new FileInputStream(file) : null;
|
||||||
|
|
|
@ -366,7 +366,6 @@ public class TeaVMTool {
|
||||||
private AbstractRendererListener runtimeInjector = new AbstractRendererListener() {
|
private AbstractRendererListener runtimeInjector = new AbstractRendererListener() {
|
||||||
@Override
|
@Override
|
||||||
public void begin(RenderingContext context, BuildTarget buildTarget) throws IOException {
|
public void begin(RenderingContext context, BuildTarget buildTarget) throws IOException {
|
||||||
@SuppressWarnings("resource")
|
|
||||||
StringWriter writer = new StringWriter();
|
StringWriter writer = new StringWriter();
|
||||||
resourceToWriter("org/teavm/javascript/runtime.js", writer);
|
resourceToWriter("org/teavm/javascript/runtime.js", writer);
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
|
@ -6,10 +6,7 @@ Bundle-Version: 0.3.0.qualifer
|
||||||
Bundle-Vendor: Alexey Andreev <konsoletyper@gmail.com>
|
Bundle-Vendor: Alexey Andreev <konsoletyper@gmail.com>
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-ClassPath: .,
|
Bundle-ClassPath: .,
|
||||||
lib/asm-5.0.1.jar,
|
lib/asm-debug-all-4.0.3.jar,
|
||||||
lib/asm-commons-5.0.1.jar,
|
|
||||||
lib/asm-debug-all-4.2.jar,
|
|
||||||
lib/asm-tree-5.0.1.jar,
|
|
||||||
lib/cdi-api-1.2.jar,
|
lib/cdi-api-1.2.jar,
|
||||||
lib/commons-io-2.4.jar,
|
lib/commons-io-2.4.jar,
|
||||||
lib/jackson-core-asl-1.9.13.jar,
|
lib/jackson-core-asl-1.9.13.jar,
|
||||||
|
|
|
@ -3,10 +3,7 @@ output.. = target/
|
||||||
bin.includes = META-INF/,\
|
bin.includes = META-INF/,\
|
||||||
.,\
|
.,\
|
||||||
lib/,\
|
lib/,\
|
||||||
lib/asm-5.0.1.jar,\
|
lib/asm-debug-all-5.0.3.jar,\
|
||||||
lib/asm-commons-5.0.1.jar,\
|
|
||||||
lib/asm-debug-all-4.2.jar,\
|
|
||||||
lib/asm-tree-5.0.1.jar,\
|
|
||||||
lib/cdi-api-1.2.jar,\
|
lib/cdi-api-1.2.jar,\
|
||||||
lib/commons-io-2.4.jar,\
|
lib/commons-io-2.4.jar,\
|
||||||
lib/jackson-core-asl-1.9.13.jar,\
|
lib/jackson-core-asl-1.9.13.jar,\
|
||||||
|
|
|
@ -58,6 +58,16 @@
|
||||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||||
<artifactId>javax-websocket-server-impl</artifactId>
|
<artifactId>javax-websocket-server-impl</artifactId>
|
||||||
<version>${jetty.version}</version>
|
<version>${jetty.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm-common</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package org.teavm.eclipse.m2e;
|
package org.teavm.eclipse.m2e;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.net.URI;
|
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import org.apache.maven.execution.MavenSession;
|
import org.apache.maven.execution.MavenSession;
|
||||||
import org.apache.maven.plugin.MojoExecution;
|
import org.apache.maven.plugin.MojoExecution;
|
||||||
|
|
|
@ -49,7 +49,6 @@ public class JavaScriptResourceInterceptor extends AbstractRendererListener {
|
||||||
throw new RenderingException("Error processing JavaScriptResource annotation on class " +
|
throw new RenderingException("Error processing JavaScriptResource annotation on class " +
|
||||||
className + ". Resource not found: " + resourceName);
|
className + ". Resource not found: " + resourceName);
|
||||||
}
|
}
|
||||||
@SuppressWarnings("resource")
|
|
||||||
StringWriter writer = new StringWriter();
|
StringWriter writer = new StringWriter();
|
||||||
IOUtils.copy(input, writer);
|
IOUtils.copy(input, writer);
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user