1 | package com.github.netkorp.telegram.framework.properties; |
||
0 ignored issues
–
show
Code Smell
introduced
by
![]() |
|||
2 | |||
3 | import org.springframework.boot.context.properties.ConfigurationProperties; |
||
4 | import org.springframework.stereotype.Component; |
||
5 | |||
6 | import java.util.List; |
||
7 | |||
8 | /** |
||
9 | * Contains the properties associated to the commands. |
||
10 | */ |
||
11 | @Component |
||
12 | @ConfigurationProperties("telegram.commands") |
||
13 | public class CommandProperties { |
||
0 ignored issues
–
show
|
|||
14 | |||
15 | /** |
||
16 | * List with the names of non-secure commands. |
||
17 | */ |
||
18 | private List<String> nonSecure; |
||
0 ignored issues
–
show
|
|||
19 | |||
20 | /** |
||
21 | * Returns the list with the names of non-secure commands. |
||
22 | * |
||
23 | * @return the list with the names of non-secure commands. |
||
24 | */ |
||
25 | public List<String> getNonSecure() { |
||
0 ignored issues
–
show
|
|||
26 | return nonSecure; |
||
0 ignored issues
–
show
|
|||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Sets the names of non-secure commands. |
||
31 | * |
||
32 | * @param nonSecure the names of non-secure commands. |
||
33 | */ |
||
34 | public void setNonSecure(List<String> nonSecure) { |
||
0 ignored issues
–
show
|
|||
35 | this.nonSecure = nonSecure; |
||
0 ignored issues
–
show
|
|||
36 | } |
||
37 | } |
||
38 |