/*******************************************************************************
* Copyright (c) 2010 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.jboss.tools.cdi.reddeer.validators;
import java.util.Arrays;
import org.jboss.reddeer.eclipse.ui.problems.ProblemsView.ProblemType;
import org.jboss.tools.cdi.reddeer.annotation.ValidationType;
public class InterceptorBindingValidationProviderCDI11 extends AbstractValidationProvider {
private final String jsr = "JSR-346";
public InterceptorBindingValidationProviderCDI11() {
super();
}
@Override
void init() {
problems.add(new ValidationProblem(ProblemType.WARNING, ValidationType.ANNOTATION_NONBINDING,
"Annotation-valued member of an interceptor binding type should be annotated @Nonbinding",jsr,
Arrays.asList("Add annotation @Nonbinding to method")));
problems.add(new ValidationProblem(ProblemType.WARNING, ValidationType.ARRAY_NONBINDING,
"Array-valued member of an interceptor binding type must be annotated @Nonbinding",jsr,
Arrays.asList("Add annotation @Nonbinding to method")));
}
}