google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Change getCode method without arguments in CodeBlock into derived attribute #523

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The method getCode() (see code snippet below) in CodeBlock can be refactored 
into a derived attribute.

  public String getCode()
  {
    return !codes.containsKey(languageUsed) ? "".equals(languageUsed) ? null : codes.get("") : codes.get(languageUsed);
  }

Note that fixing this issue was attempted under issue 509, but there was a 
problem with inheritance when the change was made which caused the CodeBlock 
class and all of its subclasses to become abstract.

Original issue reported on code.google.com by TylerJDMcConnell on 28 Feb 2014 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by TylerJDMcConnell on 7 Mar 2014 at 7:58

GoogleCodeExporter commented 9 years ago

Original comment by TylerJDMcConnell on 14 Mar 2014 at 3:27

GoogleCodeExporter commented 9 years ago
This issue is currently blocked by issue 530.

Original comment by TylerJDMcConnell on 14 Mar 2014 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 21 Mar 2014 at 6:21