Specialize JavaFileTemplate.importedName(Type) 10/85310/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Oct 2019 18:46:29 +0000 (20:46 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Oct 2019 19:11:20 +0000 (21:11 +0200)
commitdbaae85acd37ba622f4f53a7335af14e768fb180
tree06e75e309645ce42157f170c62b69778ecd2d777
parentb9260b2257e1e5005a13ac440de6b6fe38fe398b
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 <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/AbstractJavaGeneratedType.java
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/JavaFileTemplate.java