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