Skip to content

Commit 15f5f0e

Browse files
authored
Fix javadocs errors and warnings (#39)
1 parent 238925a commit 15f5f0e

File tree

4 files changed

+36
-17
lines changed

4 files changed

+36
-17
lines changed

src/main/java/aquality/selenium/core/elements/interfaces/IElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface IElement extends IParent {
2929

3030
/**
3131
* Gets current element by specified {@link #getLocator()}
32-
* Default timeout is provided in {@link aquality.selenium.core.configurations.ITimeoutConfiguration}/>
32+
* Default timeout is provided in {@link aquality.selenium.core.configurations.ITimeoutConfiguration}
3333
* {@link org.openqa.selenium.NoSuchElementException} throws if element not found
3434
*
3535
* @return instance of {@link RemoteWebElement} if found.

src/main/java/aquality/selenium/core/elements/interfaces/IElementFactory.java

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ default <T extends IElement> T getCustomElement(IElementSupplier<T> elementSuppl
3939
/**
4040
* Create custom element according to passed parameters.
4141
*
42-
* @param clazz Class or interface of the element to be obtained.
43-
* @param locator Locator of the target element.
44-
* @param name Name of the target element.
45-
* @param <T> Type of the target element.
42+
* @param clazz Class or interface of the element to be obtained.
43+
* @param locator Locator of the target element.
44+
* @param name Name of the target element.
45+
* @param <T> Type of the target element.
4646
* @return Instance of custom element.
4747
*/
4848
default <T extends IElement> T getCustomElement(Class<T> clazz, By locator, String name) {
@@ -52,11 +52,11 @@ default <T extends IElement> T getCustomElement(Class<T> clazz, By locator, Stri
5252
/**
5353
* Create custom element according to passed parameters.
5454
*
55-
* @param clazz Class or interface of the element to be obtained.
56-
* @param locator Locator of the target element.
57-
* @param name Name of the target element.
58-
* @param state Visibility state of the target element.
59-
* @param <T> Type of the target element.
55+
* @param clazz Class or interface of the element to be obtained.
56+
* @param locator Locator of the target element.
57+
* @param name Name of the target element.
58+
* @param state Visibility state of the target element.
59+
* @param <T> Type of the target element.
6060
* @return Instance of custom element.
6161
*/
6262
<T extends IElement> T getCustomElement(Class<T> clazz, By locator, String name, ElementState state);
@@ -69,6 +69,7 @@ default <T extends IElement> T getCustomElement(Class<T> clazz, By locator, Stri
6969
* @param name Child element name.
7070
* @param parentElement Parent element for relative search of child element.
7171
* @param state Visibility state of target element.
72+
* @param <T> Type of the target element.
7273
* @return Child element.
7374
*/
7475
<T extends IElement> T findChildElement(IElement parentElement, By childLoc, String name,
@@ -81,10 +82,11 @@ <T extends IElement> T findChildElement(IElement parentElement, By childLoc, Str
8182
* @param clazz Class or interface of the element to be obtained.
8283
* @param name Child element name.
8384
* @param parentElement Parent element for relative search of child element.
85+
* @param <T> Type of the target element.
8486
* @return Child element.
8587
*/
8688
default <T extends IElement> T findChildElement(IElement parentElement, By childLoc, String name,
87-
Class<T> clazz) {
89+
Class<T> clazz) {
8890
return findChildElement(parentElement, childLoc, name, clazz, ElementState.EXISTS_IN_ANY_STATE);
8991
}
9092

@@ -95,6 +97,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
9597
* @param clazz Class or interface of the element to be obtained.
9698
* @param parentElement Parent element for relative search of child element.
9799
* @param state Visibility state of child element.
100+
* @param <T> Type of the target element.
98101
* @return Child element.
99102
*/
100103
default <T extends IElement> T findChildElement(IElement parentElement, By childLoc,
@@ -108,6 +111,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
108111
* @param childLoc Locator of child element relative to its parent.
109112
* @param clazz Class or interface of the element to be obtained.
110113
* @param parentElement Parent element for relative search of child element.
114+
* @param <T> Type of the target element.
111115
* @return Child element.
112116
*/
113117
default <T extends IElement> T findChildElement(IElement parentElement, By childLoc,
@@ -122,10 +126,11 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
122126
* @param supplier Required element's supplier.
123127
* @param name Child element name.
124128
* @param parentElement Parent element for relative search of child element.
129+
* @param <T> Type of the target element.
125130
* @return Child element.
126131
*/
127132
default <T extends IElement> T findChildElement(IElement parentElement, By childLoc, String name,
128-
IElementSupplier<T> supplier) {
133+
IElementSupplier<T> supplier) {
129134
return findChildElement(parentElement, childLoc, name, supplier, ElementState.EXISTS_IN_ANY_STATE);
130135
}
131136

@@ -137,6 +142,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
137142
* @param name Child element name.
138143
* @param parentElement Parent element for relative search of child element.
139144
* @param state Visibility state of child element.
145+
* @param <T> Type of the target element.
140146
* @return Child element.
141147
*/
142148
<T extends IElement> T findChildElement(IElement parentElement, By childLoc, String name,
@@ -149,10 +155,11 @@ <T extends IElement> T findChildElement(IElement parentElement, By childLoc, Str
149155
* @param supplier Required element's supplier.
150156
* @param parentElement Parent element for relative search of child element.
151157
* @param state Visibility state of child element.
158+
* @param <T> Type of the target element.
152159
* @return Child element.
153160
*/
154161
default <T extends IElement> T findChildElement(IElement parentElement, By childLoc,
155-
IElementSupplier<T> supplier, ElementState state) {
162+
IElementSupplier<T> supplier, ElementState state) {
156163
return findChildElement(parentElement, childLoc, null, supplier, state);
157164
}
158165

@@ -162,21 +169,23 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
162169
* @param childLoc Locator of child element relative to its parent.
163170
* @param supplier Required element's supplier.
164171
* @param parentElement Parent element for relative search of child element.
172+
* @param <T> Type of the target element.
165173
* @return Child element.
166174
*/
167175
default <T extends IElement> T findChildElement(IElement parentElement, By childLoc,
168-
IElementSupplier<T> supplier) {
176+
IElementSupplier<T> supplier) {
169177
return findChildElement(parentElement, childLoc, supplier, ElementState.EXISTS_IN_ANY_STATE);
170178
}
171179

172180
/**
173181
* Find list of elements.
174182
*
175183
* @param locator Elements selector.
176-
* @param name Child element name.
184+
* @param name Child element name.
177185
* @param supplier Required elements' supplier.
178186
* @param count Expected number of elements that have to be found (zero, more then zero, any).
179187
* @param state Visibility state of target elements.
188+
* @param <T> Type of the target element.
180189
* @return List of elements.
181190
*/
182191
<T extends IElement> List<T> findElements(By locator, String name, IElementSupplier<T> supplier, ElementsCount count,
@@ -189,10 +198,11 @@ <T extends IElement> List<T> findElements(By locator, String name, IElementSuppl
189198
* @param supplier Required elements' supplier.
190199
* @param count Expected number of elements that have to be found (zero, more then zero, any).
191200
* @param state Visibility state of target elements.
201+
* @param <T> Type of the target element.
192202
* @return List of elements.
193203
*/
194204
default <T extends IElement> List<T> findElements(By locator, IElementSupplier<T> supplier, ElementsCount count,
195-
ElementState state) {
205+
ElementState state) {
196206
return findElements(locator, null, supplier, count, state);
197207
}
198208

@@ -203,6 +213,8 @@ default <T extends IElement> List<T> findElements(By locator, IElementSupplier<T
203213
* @param name Child element name.
204214
* @param clazz Class or interface of the element to be obtained.
205215
* @param count Expected number of elements that have to be found (zero, more then zero, any).
216+
* @param state Visibility state of target elements.
217+
* @param <T> Type of the target element.
206218
* @return List of elements.
207219
*/
208220
<T extends IElement> List<T> findElements(By locator, String name, Class<T> clazz, ElementsCount count, ElementState state);
@@ -213,6 +225,8 @@ default <T extends IElement> List<T> findElements(By locator, IElementSupplier<T
213225
* @param locator Elements selector.
214226
* @param clazz Class or interface of the element to be obtained.
215227
* @param count Expected number of elements that have to be found (zero, more then zero, any).
228+
* @param state Visibility state of target elements.
229+
* @param <T> Type of the target element.
216230
* @return List of elements.
217231
*/
218232
default <T extends IElement> List<T> findElements(By locator, Class<T> clazz, ElementsCount count, ElementState state) {
@@ -224,6 +238,7 @@ default <T extends IElement> List<T> findElements(By locator, Class<T> clazz, El
224238
*
225239
* @param locator Elements selector.
226240
* @param clazz Class or interface of elements to be obtained.
241+
* @param <T> Type of the target element.
227242
* @return List of elements.
228243
*/
229244
default <T extends IElement> List<T> findElements(By locator, Class<T> clazz) {
@@ -237,6 +252,7 @@ default <T extends IElement> List<T> findElements(By locator, Class<T> clazz) {
237252
* @param clazz Class or interface of elements to be obtained.
238253
* @param name Child element name.
239254
* @param count Expected number of elements that have to be found (zero, more then zero, any).
255+
* @param <T> Type of the target element.
240256
* @return List of elements.
241257
*/
242258
default <T extends IElement> List<T> findElements(By locator, String name, Class<T> clazz, ElementsCount count) {
@@ -249,6 +265,7 @@ default <T extends IElement> List<T> findElements(By locator, String name, Class
249265
* @param locator Elements selector.
250266
* @param name Child element name.
251267
* @param clazz Class or interface of elements to be obtained.
268+
* @param <T> Type of the target element.
252269
* @return List of elements.
253270
*/
254271
default <T extends IElement> List<T> findElements(By locator, String name, Class<T> clazz) {
@@ -261,6 +278,7 @@ default <T extends IElement> List<T> findElements(By locator, String name, Class
261278
* @param locator Elements selector.
262279
* @param clazz Class or interface of elements to be obtained.
263280
* @param count Expected number of elements that have to be found (zero, more then zero, any).
281+
* @param <T> Type of the target element.
264282
* @return List of elements.
265283
*/
266284
default <T extends IElement> List<T> findElements(By locator, Class<T> clazz, ElementsCount count) {

src/main/java/aquality/selenium/core/elements/interfaces/IElementFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* - empty - to get all elements;
1717
* - desired {@link ElementState};
1818
* - with {@link DesiredState};
19-
* - with {@link Predicate<WebElement>}.
19+
* - with {@link Predicate}.
2020
*/
2121
public interface IElementFinder extends SearchContext {
2222

src/main/java/aquality/selenium/core/logging/Logger.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static Logger getInstance() {
2727
* Adds appender
2828
*
2929
* @param appender Appender to be added
30+
* @return logger instance
3031
*/
3132
public Logger addAppender(Appender appender) {
3233
log4J.get().addAppender(appender);

0 commit comments

Comments
 (0)