1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0 2 3 import java.util.concurrent.ThreadFactory; //indent:0 exp:0 4 5 import static java.util.concurrent.Executors.newFixedThreadPool; //indent:0 exp:0 6 7 /** //indent:0 exp:0 8 * This test-input is intended to be checked using following configuration: //indent:1 exp:1 9 * //indent:1 exp:1 10 * arrayInitIndent = 4 //indent:1 exp:1 11 * basicOffset = 4 //indent:1 exp:1 12 * braceAdjustment = 0 //indent:1 exp:1 13 * caseIndent = 4 //indent:1 exp:1 14 * forceStrictCondition = false //indent:1 exp:1 15 * lineWrappingIndentation = 4 //indent:1 exp:1 16 * tabWidth = 4 //indent:1 exp:1 17 * throwsIndent = 4 //indent:1 exp:1 18 */ //indent:1 exp:1 19 public class InputIndentationInvalidAnonymousClassIndent { //indent:0 exp:0 20 21 public InputIndentationInvalidAnonymousClassIndent() { //indent:4 exp:4 22 newFixedThreadPool(1, new ThreadFactory() { //indent:8 exp:8 23 public Thread newThread(Runnable runnable) { //indent:12 exp:12 24 if (hashCode() == 0) { //indent:16 exp:16 25 return new Thread(); //indent:20 exp:20 26 } else { //indent:16 exp:16 27 return new Thread(); //indent:20 exp:20 28 }}}); //indent:16 exp:16 29 return; //indent:8 exp:8 30 } //indent:4 exp:4 31 } //indent:0 exp:0