| name | java |
|---|---|
| description | Use for Java package layout, Java 8 constraints, Lombok, and coding conventions in this repository. |
- You add new types under
com.contentstack.cmsor reorganize packages. - You need to stay compatible with Java 8 (
maven.compiler.source/target= 1.8). - You use or configure Lombok and need to match existing patterns.
- Main code:
src/main/java/com/contentstack/cms/— core client inContentstack, stack features understack/, HTTP helpers incore/, OAuth underoauth/, models undermodels/. - Tests: mirror packages under
src/test/java/com/contentstack/cms/; Surefire includes**/Test*.java,**/*Test.java,**/*Tests.java, and related patterns perpom.xml.
- Do not use language or library features that require a JVM newer than 8 for source compatibility unless the project explicitly upgrades (check
maven-compiler-pluginand<maven.compiler.source>inpom.xml).
- Lombok is on the annotation processor path; prefer the same style as neighboring classes (
@Getter,@Builder, etc.) instead of mixing hand-written boilerplate inconsistently. - JetBrains
@NotNull/ nullable annotations appear in places likeContentstack; follow existing nullability hints for new APIs.
- The compiler enables broad
-Xlintchecks; fix new warnings rather than suppressing without cause.