| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Enable "wrap at right margin" in JavaDoc code style settings (#2921) Enabling this setting allows IntelliJ's auto-format to take care of wrapping JavaDoc comments to match our configured row width. When writing length comments/descriptions, we can simply auto-format to have every row formatted to fit to the correct width. | 4 年前 | |
Move IntelliJ code style & copyright configuration to project-level settings (#2652) * Move IntelliJ code style & copyright configuration to project-level ## Motivation We currently expose IntelliJ code style & copyright configuration as standalone config files that users must manually import into their IDE. The import process is not too tedious, since the files are stored in Git (and thus readily available at the project level), but it requires users to know to find and import these files, and it's an unnecessary manual step for new users to be able to contribute. IntelliJ makes it easy to share configuration at the project-level. With its .idea directory structure, we can manually choose which files to share in Git. Then any user cloning the project will automatically use our recommended settings. Another benefit of this approach is that any changes to the existing code style will be automatically shared and synced with users when they pull the latest version. ## Modifications * Copy intellij-codestyle.xml to project-level settings (and remove the old file) * Copy intellij-copyright-profile.xml to project-level settings (and remove the old file) * Update gitignore to not ignore the directories for these specific project-level settings * Update the GettingStarted guide accordingly ## Notes To generate the project-level code style, I used the existing intellij-codestyle.xml and performed the IntelliJ "copy to project" action. This resulted in some slight differences, like reordering of elements and elements like "GENERATE_FINAL_LOCALS" no longer being present, but from what I can tell this is due to them specifying the same as the default behavior. ## Resources https://stackoverflow.com/questions/9087439/how-to-share-code-style-settings-between-developers-in-intellij https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 https://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder | 5 年前 | |
Include retried failure messages as "suppressed" exceptions. (#3560) Additionally, always include a useful exception message even when the service returns no error message. Stack trace example before this change: ``` software.amazon.awssdk.services.protocolrestjson.model.ProtocolRestJsonException: null (Service: ProtocolRestJson, Status Code: 400, Request ID: null) at software.amazon.awssdk.core.internal.http.CombinedResponseHandler.handleErrorResponse(CombinedResponseHandler.java:125) ... at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) ``` Stack trace example after this change: ``` software.amazon.awssdk.services.protocolrestjson.model.ProtocolRestJsonException: Service returned HTTP status code 400 (Service: ProtocolRestJson, Status Code: 400, Request ID: null) at software.amazon.awssdk.core.internal.http.CombinedResponseHandler.handleErrorResponse(CombinedResponseHandler.java:125) ... at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) Suppressed: software.amazon.awssdk.core.exception.SdkClientException: Request attempt 1 failure: Service returned HTTP status code 500 (Service: ProtocolRestJson, Status Code: 500, Request ID: null) Suppressed: software.amazon.awssdk.core.exception.SdkClientException: Request attempt 2 failure: Service returned HTTP status code 500 (Service: ProtocolRestJson, Status Code: 500, Request ID: null) ``` | 3 年前 |