Skip to content

Commit 375ce8b

Browse files
committed
Issue #277: update to Checkstyle 8.40
1 parent 4ae6d81 commit 375ce8b

File tree

12 files changed

+7
-24
lines changed

12 files changed

+7
-24
lines changed

net.sf.eclipsecs.checkstyle/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry exported="true" kind="lib" path="checkstyle-8.39-all.jar" sourcepath="checkstyle-checkstyle-8.39.zip"/>
3+
<classpathentry exported="true" kind="lib" path="checkstyle-8.40-all.jar" sourcepath="checkstyle-checkstyle-8.40.zip"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
55
<attributes>
66
<attribute name="maven.pomderived" value="true"/>

net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ Export-Package: .,
4646
com.puppycrawl.tools.checkstyle.utils,
4747
org.apache.commons.beanutils;version="8.39.0"
4848
Bundle-ClassPath: .,
49-
checkstyle-8.39-all.jar
49+
checkstyle-8.40-all.jar
5050
Automatic-Module-Name: net.sf.eclipsecs.checkstyle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
bin.includes = META-INF/,\
22
.,\
33
license/,\
4-
checkstyle-8.39-all.jar
4+
checkstyle-8.40-all.jar
55
jars.compile.order = .
66
source.. = metadata/

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/design/checkstyle-metadata.properties

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
Design.group = Class Design
22

3-
DesignForExtension.desc = Checks that classes are designed for extension. More specifically, it enforces a programming style where superclasses provide empty "hooks" that can be implemented by subclasses.<br/>\r\nThe exact rule is that nonprivate, nonstatic methods of classes that can be subclassed must either be\r\n<ul>\r\n<li>abstract or</li>\r\n<li>final or</li>\r\n<li>have an empty implementation</li>\r\n</ul>\r\nRationale: This API design style protects superclasses against being broken by subclasses. The downside is that subclasses are limited in their flexibility, in particular they cannot prevent execution of code in the superclass, but that also means that subclasses cannot corrupt the state of the superclass by forgetting to call the super method.
4-
DesignForExtension.name = Design For Extension
5-
DesignForExtension.ignoredAnnotations = Annotations which allow the check to skip the method from validation.
6-
73
FinalClass.desc = Checks that a class which has only private constructors is declared as final.
84
FinalClass.name = Final Class
95

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/design/checkstyle-metadata.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44
"http://eclipse-cs.sourceforge.net/dtds/checkstyle-metadata_1_1.dtd">
55
<checkstyle-metadata>
66
<rule-group-metadata name="%Design.group" priority="1000">
7-
8-
<rule-metadata name="%DesignForExtension.name" internal-name="DesignForExtension" parent="TreeWalker">
9-
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck" />
10-
<description>%DesignForExtension.desc</description>
11-
<property-metadata name="ignoredAnnotations" datatype="String"
12-
default-value="Test,Before,After,BeforeClass,AfterClass">
13-
<description>%DesignForExtension.ignoredAnnotations</description>
14-
</property-metadata>
15-
<quickfix classname="net.sf.eclipsecs.ui.quickfixes.design.DesignForExtensionQuickfix" />
16-
<message-key key="design.forExtension" />
17-
</rule-metadata>
18-
197
<rule-metadata name="%FinalClass.name" internal-name="FinalClass" parent="TreeWalker">
208
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck" />
219
<description>%FinalClass.desc</description>

net.sf.eclipsecs.checkstyle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<name>Checkstyle Core Library Plugin</name>
1212

1313
<properties>
14-
<checkstyle.version>8.39</checkstyle.version>
14+
<checkstyle.version>8.40</checkstyle.version>
1515
</properties>
1616
<build>
1717
<plugins>

net.sf.eclipsecs.checkstyle/test/net/sf/eclipsecs/checkstyle/ChecksTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public class ChecksTest {
8585
"com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck",
8686
"com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck",
8787
"com.puppycrawl.tools.checkstyle.checks.coding.DefaultComesLastCheck",
88-
"com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck",
8988
"com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck",
9089
"com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyForInitializerPadCheck",
9190
"com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyForIteratorPadCheck",

net.sf.eclipsecs.core/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<classpathentry exported="true" kind="lib" path="lib/dom4j-2.1.3.jar"/>
1111
<classpathentry exported="true" kind="lib" path="lib/snakeyaml-1.26.jar"/>
1212
<classpathentry exported="true" kind="lib" path="lib/reflections-0.9.10.jar"/>
13-
<classpathentry kind="lib" path="lib/checkstyle-8.39-all.jar"/>
13+
<classpathentry kind="lib" path="lib/checkstyle-8.40-all.jar"/>
1414
<classpathentry kind="output" path="target/classes"/>
1515
</classpath>

net.sf.eclipsecs.core/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Bundle-ClassPath: .,
88
lib/dom4j-2.1.3.jar,
99
lib/snakeyaml-1.26.jar,
1010
lib/reflections-0.9.10.jar,
11-
lib/checkstyle-8.39-all.jar
11+
lib/checkstyle-8.40-all.jar
1212
Bundle-Activator: net.sf.eclipsecs.core.CheckstylePlugin
1313
Bundle-ActivationPolicy: lazy
1414
Bundle-Vendor: Eclipse Checkstyle Project

0 commit comments

Comments
 (0)