Remove redundant throws declarations. #1555
Fixes `RedundantThrowsDeclaration` inspection violations. Description: >This inspection reports exceptions that are declared in a method's signature but never thrown by the method itself.
This commit is contained in:
parent
9713d08ccc
commit
bf6966b145
|
|
@ -10,15 +10,13 @@ import java.util.List;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.utils.CommonUtils;
|
||||
|
||||
public class IndentationConfigurationBuilder extends ConfigurationBuilder
|
||||
{
|
||||
private static final int TAB_WIDTH = 4;
|
||||
|
||||
public IndentationConfigurationBuilder(File aROOT)
|
||||
throws CheckstyleException {
|
||||
public IndentationConfigurationBuilder(File aROOT) {
|
||||
super(aROOT);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter2filebasic.rule21filename;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheck;
|
||||
|
||||
|
|
@ -18,7 +16,7 @@ public class OuterTypeFilenameTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter2filebasic.rule231filetab;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck;
|
||||
|
||||
|
|
@ -18,7 +16,7 @@ public class FileTabCharacterTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter2filebasic.rule232specialescape;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
public class IllegalTokenTextTest extends BaseCheckTestSupport{
|
||||
|
|
@ -16,8 +14,7 @@ public class IllegalTokenTextTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder()
|
||||
throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter2filebasic.rule233nonascii;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.AvoidEscapedUnicodeCharactersCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class AvoidEscapedUnicodeCharactersCheckTest extends BaseCheckTestSupport
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule32packagestate;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class LineLengthTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule331nowildcard;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
public class AvoidStarImportTest extends BaseCheckTestSupport{
|
||||
|
|
@ -16,7 +14,7 @@ public class AvoidStarImportTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule332nolinewrap;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.NoLineWrapCheck;
|
||||
|
|
@ -19,7 +17,7 @@ public class NoLineWrapTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule333orderingandsoacing;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck;
|
||||
|
||||
|
|
@ -27,7 +25,7 @@ public class CustomImportOrderTest extends BaseCheckTestSupport{
|
|||
private static final String SPECIAL = CustomImportOrderCheck.SPECIAL_IMPORTS_RULE_GROUP;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule341onetoplevel;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.design.OneTopLevelClassCheck;
|
||||
|
||||
|
|
@ -18,7 +16,7 @@ public class OneTopLevelClassTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule3421overloadsplit;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.OverloadMethodsDeclarationOrderCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class OverloadMethodsDeclarationOrderTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter3filestructure.rule3sourcefile;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class EmptyLineSeparatorTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule411bracesareused;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class NeedBracesTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import static com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck.MSG_
|
|||
import static com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck.MSG_KEY_LINE_NEW;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -14,7 +13,6 @@ import org.junit.Test;
|
|||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck;
|
||||
|
|
@ -25,7 +23,7 @@ public class LeftCurlyRightCurlyTest extends BaseCheckTestSupport {
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule413emptyblocks;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class EmptyBlockTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule413emptyblocks;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.EmptyCatchBlockCheck;
|
||||
|
||||
|
|
@ -18,7 +16,7 @@ public class EmptyCatchBlockTest extends BaseCheckTestSupport
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule43onestatement;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class OneStatementPerLineTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule44cloumunlimit;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class LineLengthTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule451wheretobreack;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.MethodParamPadCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class MethodParamPadTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule451wheretobreack;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.WrapOption;
|
||||
|
|
@ -19,7 +17,7 @@ public class OperatorWrapTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule451wheretobreack;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.SeparatorWrapCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class SeparatorWrapTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule461verticalwhitespace;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class EmptyLineSeparatorTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule462horizontalwhitespace;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
public class WhitespaceAroundTest extends BaseCheckTestSupport{
|
||||
|
|
@ -17,7 +15,7 @@ public class WhitespaceAroundTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4821onevariablepreline;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.MultipleVariableDeclarationsCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class MultipleVariableDeclarationsTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4822variabledistance;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class VariableDeclarationUsageDistanceTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4832nocstylearray;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class ArrayTypeStyleTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4841indentation;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -18,7 +17,7 @@ public class IndentationTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException, IOException {
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
builder = new IndentationConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4842fallthrow;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.FallThroughCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class FallThroughTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4843defaultcasepresent;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.MissingSwitchDefaultCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class MissingSwitchDefaultTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule485annotations;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationLocationCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class AnnotationLocationTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule4861blockcommentstyle;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.indentation.CommentsIndentationCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class CommentsIndentationTest extends BaseCheckTestSupport {
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule487modifiers;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class ModifierOrderTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter4formatting.rule488numericliterals;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
public class UpperEllTest extends BaseCheckTestSupport{
|
||||
|
|
@ -16,7 +14,7 @@ public class UpperEllTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter5naming.rule522typenames;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
public class TypeNameTest extends BaseCheckTestSupport{
|
||||
|
|
@ -16,7 +14,7 @@ public class TypeNameTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter5naming.rule523methodnames;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
public class MethodNameTest extends BaseCheckTestSupport{
|
||||
|
|
@ -16,7 +14,7 @@ public class MethodNameTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter5naming.rule53camelcase;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck;
|
||||
|
||||
|
|
@ -20,7 +18,7 @@ public class AbbreviationAsWordInNameTest extends BaseCheckTestSupport{
|
|||
private static Configuration checkConfig;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
checkConfig = builder.getCheckConfig("AbbreviationAsWordInName");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter6programpractice.rule62donotignoreexceptions;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class EmptyBlockTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter6programpractice.rule64finalizers;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class NoFinalizerTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule711generalform;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.javadoc.SingleLineJavadocCheck;
|
||||
|
||||
|
|
@ -18,7 +16,7 @@ public class SingleLineJavadocTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule712paragraphs;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
@ -9,7 +8,6 @@ import org.junit.Test;
|
|||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocParagraphCheck;
|
||||
|
||||
|
|
@ -18,7 +16,7 @@ public class JavadocParagraphTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule713atclauses;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class AtclauseOrderTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule713atclauses;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class JavadocTagContinuationIndentationTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule713atclauses;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class NonEmptyAtclauseDescriptionTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule72thesummaryfragment;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class SummaryJavadocTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
package com.google.checkstyle.test.chapter7javadoc.rule731selfexplanatory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.checkstyle.test.base.BaseCheckTestSupport;
|
||||
import com.google.checkstyle.test.base.ConfigurationBuilder;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck;
|
||||
|
||||
|
|
@ -17,7 +15,7 @@ public class JavadocMethodTest extends BaseCheckTestSupport{
|
|||
private static ConfigurationBuilder builder;
|
||||
|
||||
@BeforeClass
|
||||
public static void setConfigurationBuilder() throws CheckstyleException {
|
||||
public static void setConfigurationBuilder() {
|
||||
builder = new ConfigurationBuilder(new File("src/it/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ public class CommonUtilsTest {
|
|||
CommonUtils.close(new Closeable() {
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
public void close() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue