From 396bafa2340c7bb0bf12bf042c7baa59c1ef5a2e Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sat, 11 Jan 2020 18:31:07 +0100 Subject: [PATCH] api doc --- .../inetsoftware/jwebassembly/module/ModuleGenerator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java index a6b95dd..9a6860b 100644 --- a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java +++ b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java @@ -176,12 +176,12 @@ public class ModuleGenerator { } /** - * Prepare all needed methods/functions and scan the content for more needed stuff. + * Scan all needed methods/functions in a loop. If the scan find more needed content then the loop continue. * * @throws IOException * if any I/O error occur */ - private void prepareFunctions() throws IOException { + private void scanFunctions() throws IOException { FunctionName next; NEXT: while( (next = functions.nextScannLater()) != null ) { @@ -239,7 +239,7 @@ public class ModuleGenerator { * if any I/O error occur */ public void prepareFinish() throws IOException { - prepareFunctions(); + scanFunctions(); // write only the needed imports to the output for( Iterator iterator = functions.getNeededImports(); iterator.hasNext(); ) { @@ -270,7 +270,7 @@ public class ModuleGenerator { JWebAssembly.LOGGER.fine( "scan finsih" ); types.prepareFinish( writer, functions, classFileLoader ); - prepareFunctions(); // prepare of types can add some override methods as needed + scanFunctions(); // prepare of types can add some override methods as needed functions.prepareFinish(); strings.prepareFinish( writer ); writer.prepareFinish();