From 0d72c9cd50cec73b3ff8e285707e93a628f4675e Mon Sep 17 00:00:00 2001 From: Volker Date: Mon, 11 Jun 2018 19:06:03 +0200 Subject: [PATCH] use annotation package from library --- .../inetsoftware/jwebassembly/module/ModuleGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java index 71074d1..7830953 100644 --- a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java +++ b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java @@ -125,7 +125,7 @@ public class ModuleGenerator { private void prepareMethod( MethodInfo method ) throws WasmException { try { FunctionName name = new FunctionName( method ); - Map annotationValues = method.getAnnotation( "org.webassembly.annotation.Import" ); + Map annotationValues = method.getAnnotation( "de.inetsoftware.jwebassembly.api.annotation.Import" ); if( annotationValues != null ) { String impoarModule = (String)annotationValues.get( "module" ); String importName = (String)annotationValues.get( "name" ); @@ -151,7 +151,7 @@ public class ModuleGenerator { CodeInputStream byteCode = null; try { Code code = method.getCode(); - if( code != null && method.getAnnotation( "org.webassembly.annotation.Import" ) == null ) { // abstract methods and interface methods does not have code + if( code != null && method.getAnnotation( "de.inetsoftware.jwebassembly.api.annotation.Import" ) == null ) { // abstract methods and interface methods does not have code FunctionName name = new FunctionName( method ); writeExport( name, method ); writer.writeMethodStart( name ); @@ -210,7 +210,7 @@ public class ModuleGenerator { * if any IOException occur */ private void writeExport( FunctionName name, MethodInfo method ) throws IOException { - Map export = method.getAnnotation( "org.webassembly.annotation.Export" ); + Map export = method.getAnnotation( "de.inetsoftware.jwebassembly.api.annotation.Export" ); if( export != null ) { String exportName = (String)export.get( "name" ); if( exportName == null ) {