mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 15:01:07 +01:00
Add errorprone check and fix found errors
Adds gradle-errorprone-plugin 0.0.8, requires Gradle 2.6.
This commit is contained in:
parent
8096da43e0
commit
d728204890
23 changed files with 64 additions and 44 deletions
|
|
@ -70,7 +70,7 @@ public class DataForm implements ExtensionElement {
|
|||
|
||||
private Type type;
|
||||
private String title;
|
||||
private List<String> instructions = new ArrayList<String>();
|
||||
private final List<String> instructions = new ArrayList<>();
|
||||
private ReportedData reportedData;
|
||||
private final List<Item> items = new ArrayList<Item>();
|
||||
private final Map<String, FormField> fields = new LinkedHashMap<>();
|
||||
|
|
@ -197,7 +197,10 @@ public class DataForm implements ExtensionElement {
|
|||
* @param instructions list of instructions that explain how to fill out the form.
|
||||
*/
|
||||
public void setInstructions(List<String> instructions) {
|
||||
this.instructions = instructions;
|
||||
synchronized (this.instructions) {
|
||||
this.instructions.clear();
|
||||
this.instructions.addAll(instructions);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue