Commit 616c0ec3 authored by Oliver Kellogg's avatar Oliver Kellogg

Optmization in JavaImport: Skip object creation for method "void" return

- In function parseStmt(), on parsing a type name (of a member of class
  or interface, or return type an operation), call resolveClass only if
  typeName is not "void".

parent 372b1e02
......@@ -597,7 +597,7 @@ bool JavaImport::parseStmt()
if (!typeName.isEmpty()) {
if (!typeName.isEmpty() && typeName != QLatin1String("void")) {
// before adding the method, try resolving the return type
UMLObject *obj = resolveClass(typeName);
if (obj) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment