Skip to content

Commit 68d720a

Browse files
committed
Fix violations
1 parent 39203d8 commit 68d720a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jdi-light-angular-tests/src/main/java/io/github/com/pages/NewAngularPage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
import java.lang.reflect.Field;
88

9+
import static com.epam.jdi.light.common.Exceptions.runtimeException;
910
import static com.epam.jdi.light.elements.pageobjects.annotations.objects.FillFromAnnotationRules.fieldHasAnnotation;
1011

1112
public abstract class NewAngularPage extends WebPage implements ISetup {
1213
protected String pageLink = "";
1314
@Override
1415
public void setup(Field field) {
1516
if (!fieldHasAnnotation(field, Url.class, NewAngularPage.class)) {
16-
throw new RuntimeException("AngularPage does not have an Url annotation.");
17+
throw runtimeException("AngularPage does not have an Url annotation.");
1718
}
1819
pageLink = field.getAnnotation(Url.class).value().substring(1);
1920
}

0 commit comments

Comments
 (0)