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)
| 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. |
no outgoing calls
no test coverage detected