Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Issue 166: Code cleanup for 0.5.0 release#172

Closed
sijie wants to merge 3 commits intoapache:masterfrom
sijie:finalize_api
Closed

Issue 166: Code cleanup for 0.5.0 release#172
sijie wants to merge 3 commits intoapache:masterfrom
sijie:finalize_api

Conversation

@sijie
Copy link
Copy Markdown
Member

@sijie sijie commented Sep 1, 2017

Descriptions of the changes in this PR:

  • add InterfaceAudience and InterfaceStability for public API to inform people what changes would be expected for those interface.
  • avoid using guava classes in public API since we will provide a shaded jar for distributedlog-core
  • enable ImportOrder checkstyle rule in some modules
  • move org.apache.distributedlog.io to distributedlog-common module
  • rename setReadyToFlush to flush and rename flushAndSync to commit for the new API

sijie added 2 commits August 31, 2017 18:53
- add InterfaceAudience and InterfaceStability for public API to inform people what changes would be expected for those interface.
- avoid using guava classes in public API since we will provide a shaded jar for distributedlog-core
- enable ImportOrder checkstyle rule in some modules
- move `org.apache.distributedlog.io` to `distributedlog-common` module
@sijie
Copy link
Copy Markdown
Member Author

sijie commented Sep 1, 2017

/cc @leighst @yzang for a review

@hellostreaming
Copy link
Copy Markdown
Contributor

Hi @sijie, Thanks for the work, After add check-style, there is error report:

[INFO] There are 8 errors reported by Checkstyle 6.19 with distributedlog/checkstyle.xml ruleset.
[ERROR] src/main/java/org/apache/bookkeeper/client/BookKeeperAccessor.java:[0] (javadoc) JavadocPackage: Missing package-info.java file.
[ERROR] src/main/java/org/apache/bookkeeper/client/BookKeeperAccessor.java:[23] (javadoc) JavadocStyle: First sentence should end with a period.
[ERROR] src/main/java/org/apache/bookkeeper/client/LedgerReader.java:[39] (javadoc) JavadocParagraph: Empty line should be followed by <p> tag on the next line.
[ERROR] src/main/java/org/apache/bookkeeper/client/LedgerReader.java:[44,25] (naming) ConstantName: Variable 'logger' should be in ALL_CAPS (if it is a constant) or be private (otherwise).
[ERROR] src/main/java/org/apache/bookkeeper/client/LedgerReader.java:[46] (javadoc) JavadocType: Missing a Javadoc comment.
[ERROR] src/main/java/org/apache/bookkeeper/client/LedgerReader.java:[82,12] (modifier) ModifierOrder: 'public' modifier out of order with the JLS suggestions.
[ERROR] src/main/java/org/apache/bookkeeper/client/LedgerReader.java:[105] (sizes) LineLength: Line is longer than 120 characters (found 130).
[ERROR] src/main/java/org/apache/bookkeeper/client/LedgerReader.java:[154] (sizes) LineLength: Line is longer than 120 characters (found 125).

Would you please help fix them here?

@sijie
Copy link
Copy Markdown
Member Author

sijie commented Sep 4, 2017

@zhaijack nice catch. I will fix them.

@sijie
Copy link
Copy Markdown
Member Author

sijie commented Sep 4, 2017

@zhaijack actually where did you find this error? I can't reproduce at my laptop.

@hellostreaming
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@jiazhai jiazhai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, 👍

@jiazhai jiazhai closed this in f991a85 Sep 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants