View Javadoc
1   /*
2   MatchXpath
3   query = //CTOR_DEF[count(./PARAMETERS/*) > 0]
4   message.matchxpath.match = Parameterized constructors are not allowed
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.coding.matchxpath;
10  
11  public class InputMatchXpathForbidParameterizedConstructor {
12  
13      public InputMatchXpathForbidParameterizedConstructor(Object c) { } // violation
14  
15      public InputMatchXpathForbidParameterizedConstructor(int a, String b) { } // violation
16  
17      public InputMatchXpathForbidParameterizedConstructor() { }
18  }