Skip to content

Commit

Permalink
Use Checkstyle 7.6
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Jul 5, 2017
1 parent a689aa6 commit 7d40e4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Expand Up @@ -55,11 +55,15 @@
*/
public class PyValidator extends AbstractExtraLanguageValidator {

/** Error handler for the type conversions.
*/
private final Procedure3<EObject, JvmType, String> typeErrorHandler = (source, invalidType, name) -> {
error(MessageFormat.format(Messages.PyValidator_0, name), source);
};

private final Function2<EObject, JvmIdentifiableElement, Boolean> featureErrorHandlerr = (source, element) -> {
/** Error handler for the feature conversions.
*/
private final Function2<EObject, JvmIdentifiableElement, Boolean> featureErrorHandler = (source, element) -> {
final String message;
if (element instanceof JvmConstructor) {
message = MessageFormat.format(Messages.PyValidator_1, this.simpleNameProvider.getSimpleName(element));
Expand Down Expand Up @@ -109,7 +113,7 @@ public void checkImportsMapping(XImportDeclaration importDeclaration) {
*/
@Check
public void checkMemberFeatureCallMapping(XMemberFeatureCall featureCall) {
doCheckMemberFeatureCallMapping(featureCall, this.typeErrorHandler, this.featureErrorHandlerr);
doCheckMemberFeatureCallMapping(featureCall, this.typeErrorHandler, this.featureErrorHandler);
}

/** Check that member feature calls have a convertion mapping.
Expand All @@ -118,7 +122,7 @@ public void checkMemberFeatureCallMapping(XMemberFeatureCall featureCall) {
*/
@Check
public void checkMemberFeatureCallMapping(XFeatureCall featureCall) {
doCheckMemberFeatureCallMapping(featureCall, this.typeErrorHandler, this.featureErrorHandlerr);
doCheckMemberFeatureCallMapping(featureCall, this.typeErrorHandler, this.featureErrorHandler);
}

}
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -580,7 +580,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>7.2</version>
<version>7.6</version>
</dependency>
</dependencies>
</plugin>
Expand Down

0 comments on commit 7d40e4f

Please sign in to comment.