MCPcopy Index your code
hub / github.com/UnquietCode/Flapi / setJDKVersion

Method setJDKVersion

src/main/java/unquietcode/tools/flapi/Flapi.java:77–83  ·  view source on GitHub ↗

Set the JDK version that Flapi should use when generating source files. Certain features are only available in newer versions of the runtime. @param version the JDK version to use when generating sources

(SourceVersion version)

Source from the content-addressed store, hash-verified

75 * @param version the JDK version to use when generating sources
76 */
77 public static void setJDKVersion(SourceVersion version) {
78 if (version != null && version.ordinal() >= SourceVersion.RELEASE_5.ordinal()) {
79 JDKVersion = version;
80 } else {
81 throw new DescriptorBuilderException("Only JDK versions [5,8] are supported.");
82 }
83 }
84
85 /**
86 * @return the JDK version currently being used when generating source files.

Callers 2

Documentation.javaFile · 0.95
MainDescriptorClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected