This commit is contained in:
Volker Berlin 2022-02-20 18:29:13 +01:00
parent 9f0f82bb06
commit d4cf26ee05

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2017 - 2021 Volker Berlin (i-net software) * Copyright 2017 - 2022 Volker Berlin (i-net software)
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -580,10 +580,10 @@ public class ModuleGenerator {
} }
watParser.parse( watCode, method, null, code == null ? -1 : code.getFirstLineNr() ); watParser.parse( watCode, method, null, code == null ? -1 : code.getFirstLineNr() );
return watParser; return watParser;
} else if( code != null ) { // abstract methods and interface methods does not have code } else if( code != null ) {
javaCodeBuilder.buildCode( code, method ); javaCodeBuilder.buildCode( code, method );
return javaCodeBuilder; return javaCodeBuilder;
} else if( method.isAbstract() ) { } else if( method.isAbstract() ) { // abstract methods and interface methods does not have code
functions.markAsAbstract( new FunctionName( method ) ); // there is nothing to write for an abstract method functions.markAsAbstract( new FunctionName( method ) ); // there is nothing to write for an abstract method
return null; return null;
} else { } else {