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

样式文件,使用问题

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: build
    • Labels:
      None

      Description

      操作系统: unbunut16.04

      ide        : eclipse4.6.1

      从github下clone rocketmq下来最新的。

      从clone下来的目录中style的rmq_codeStyle.xml文件,导入到eclipse中,格式化代码。无法通过{{mvn clean install -DskipITs }}

      出现代码格式异常

      异常如下:

      {{/java/rocketmq/store/src/main/java/org/apache/rocketmq/store/MappedFile.java:652: error: 'method def rcurly' have incorrect indentation level 8, expected level should be 4.
      /javaa/rocketmq/store/src/main/java/org/apache/rocketmq/store/MappedFile.java:654: error: 'method def modifier' have incorrect indentation level 8, expected level should be 4.
      /java/rocketmq/store/src/main/java/org/apache/rocketmq/store/MappedFile.java:656: error: 'method def' child have incorrect indentation level 16, expected level should be 8.
      /java/rocketmq/store/src/main/java/org/apache/rocketmq/store/MappedFile.java:657: error: 'method def rcurly' have incorrect indentation level 8, expected level should be 4.}}

      格式化代码如下

      // code placeholder
          // testable
          File getFile() {
              return this.file;
          }
      
          @Override
          public String toString() {
              return this.fileName;
          }
      

       

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              zhouwei198732 Stevens Chew
              Reporter:
              laohu laohu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: