1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0 2 3 import java.util.function.Function; //indent:0 exp:0 4 5 /** //indent:0 exp:0 6 * This test-input is intended to be checked using following configuration: //indent:1 exp:1 7 * //indent:1 exp:1 8 * basicOffset = 2 //indent:1 exp:1 9 * braceAdjustment = 0 //indent:1 exp:1 10 * lineWrappingIndentation = 4 //indent:1 exp:1 11 * tabWidth = 4 //indent:1 exp:1 12 */ //indent:1 exp:1 13 class InputIndentationCtorCall { //indent:0 exp:0 14 15 class Base { //indent:2 exp:2 16 17 public Base(long arg) { //indent:4 exp:4 18 } //indent:4 exp:4 19 20 public Base(Function arg) { //indent:4 exp:4 21 } //indent:4 exp:4 22 23 } //indent:2 exp:2 24 25 class Invalid extends Base { //indent:2 exp:2 26 27 public Invalid(long arg) { //indent:4 exp:4 28 super( //indent:4 exp:6 warn 29 arg //indent:4 exp:6 warn 30 + 1L); //indent:4 exp:6 warn 31 } //indent:4 exp:4 32 33 public Invalid() { //indent:4 exp:4 34 this( //indent:4 exp:6 warn 35 0L); //indent:4 exp:6 warn 36 } //indent:4 exp:4 37 38 public Invalid(int arg) { //indent:4 exp:4 39 new InputIndentationCtorCall().super( //indent:4 exp:6 warn 40 arg //indent:4 exp:8 warn 41 + 1L); //indent:4 exp:8 warn 42 } //indent:4 exp:4 43 44 public Invalid(InputIndentationCtorCall obj, long arg) { //indent:4 exp:4 45 obj.super( //indent:4 exp:6 warn 46 arg); //indent:4 exp:8 warn 47 } //indent:4 exp:4 48 49 public Invalid(InputIndentationCtorCall arg) { //indent:4 exp:4 50 arg.super //indent:4 exp:6 warn 51 ( //indent:4 exp:8 warn 52 x -> x); //indent:4 exp:8 warn 53 } //indent:4 exp:4 54 55 public Invalid(char arg) { //indent:4 exp:4 56 this //indent:4 exp:6 warn 57 (); //indent:4 exp:6 warn 58 } //indent:4 exp:4 59 60 public Invalid(InputIndentationCtorCall obj, int arg) { //indent:4 exp:4 61 obj //indent:6 exp:6 62 .super( //indent:4 exp:10 warn 63 arg); //indent:4 exp:8 warn 64 } //indent:4 exp:4 65 66 public Invalid(InputIndentationCtorCall obj, char arg) { //indent:4 exp:4 67 obj. //indent:6 exp:6 68 super( //indent:4 exp:10 warn 69 arg); //indent:4 exp:8 warn 70 } //indent:4 exp:4 71 72 } //indent:2 exp:2 73 74 class Valid extends Base { //indent:2 exp:2 75 76 public Valid(int arg) { //indent:4 exp:4 77 super( //indent:6 exp:6 78 arg //indent:10 exp:10 79 + 1L); //indent:12 exp:12 80 } //indent:4 exp:4 81 82 public Valid(long arg) { //indent:4 exp:4 83 new InputIndentationCtorCall().super( //indent:6 exp:6 84 arg //indent:10 exp:10 85 + 1L); //indent:12 exp:12 86 } //indent:4 exp:4 87 88 public Valid() { //indent:4 exp:4 89 this( //indent:6 exp:6 90 0L); //indent:10 exp:10 91 } //indent:4 exp:4 92 93 public Valid(InputIndentationCtorCall obj, long arg) { //indent:4 exp:4 94 obj.super( //indent:6 exp:6 95 arg); //indent:10 exp:10 96 } //indent:4 exp:4 97 98 public Valid(InputIndentationCtorCall obj, char arg) { //indent:4 exp:4 99 obj.super( //indent:6 exp:6 100 x -> arg); //indent:10 exp:10 101 } //indent:4 exp:4 102 103 public Valid(InputIndentationCtorCall obj, int arg) { //indent:4 exp:4 104 obj //indent:6 exp:6 105 .super( //indent:10 exp:10 106 arg); //indent:12 exp:12 107 } //indent:4 exp:4 108 109 public Valid(InputIndentationCtorCall obj, float arg) { //indent:4 exp:4 110 obj. //indent:6 exp:6 111 super( //indent:10 exp:10 112 x -> arg); //indent:14 exp:14 113 } //indent:4 exp:4 114 115 public Valid(InputIndentationCtorCall obj, double arg) { //indent:4 exp:4 116 obj. //indent:6 exp:6 117 super( //indent:10 exp:10 118 x -> arg); //indent:12 exp:12 119 } //indent:4 exp:4 120 121 } //indent:2 exp:2 122 123 } //indent:0 exp:0