View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="RequireThis">
5         <property name="validateOnlyOverlapping" value="false"/>
6       </module>
7     </module>
8   </module>
9   */
10  package com.puppycrawl.tools.checkstyle.checks.coding.requirethis;
11  
12  // xdoc section -- start
13  class Example6 {
14    String prefix;
15  
16    String modifyPrefix(String prefix) {
17      prefix = "^" + prefix + "$";  //OK, because method parameter is returned
18      return prefix;
19    }
20  }
21  // xdoc section -- end