Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-43

code style file didn't match check-style in typecast

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      I have already add RocketMQ's style file, and use IntelliJ to format file, still fail on style-check like this:

      [INFO] Starting audit...
      /home/travis/build/wu-sheng/incubator-rocketmq/namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java:105:47: error: 'typecast' is not followed by whitespace.

      In intelliJ auto-format:
      LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory();

      But in style-check:
      LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();

      It got my crazy... when I change some classes, which include cast.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vongosling vongosling
                Reporter:
                wu-sheng Sheng Wu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: