From: Robert Varga Date: Mon, 21 Oct 2019 18:46:29 +0000 (+0200) Subject: Specialize JavaFileTemplate.importedName(Type) X-Git-Tag: v4.0.8~17 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=c8705b0a997a4b296a9dfcaf56e8a6ac77a9344e;hp=c8705b0a997a4b296a9dfcaf56e8a6ac77a9344e;p=mdsal.git Specialize JavaFileTemplate.importedName(Type) 95% of call sites do not use annotations, hence we specialize this method and support it through specialized AbstractJavaGeneratedType.getReferenceString(Type). This clearly separates the two codepaths and removes superfluous checks and indirections in both paths. Change-Id: I17bfef631d446d71147b17146d5b2cf71a8be623 Signed-off-by: Robert Varga (cherry picked from commit dbaae85acd37ba622f4f53a7335af14e768fb180) ---