1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-14 15:01:07 +01:00

's;^\s+$;;' on all source files

And add checkstyle test for lines containing only whitespace characters.
This commit is contained in:
Florian Schmaus 2015-03-17 11:33:02 +01:00
parent 05c97c494b
commit 0fde39fa45
193 changed files with 1066 additions and 1062 deletions

View file

@ -73,7 +73,7 @@ public class Form {
public Form(DataForm dataForm) {
this.dataForm = dataForm;
}
/**
* Creates a new Form of a given type from scratch.
*
@ -82,7 +82,7 @@ public class Form {
public Form(DataForm.Type type) {
this.dataForm = new DataForm(type);
}
/**
* Adds a new field to complete as part of the form.
*
@ -91,7 +91,7 @@ public class Form {
public void addField(FormField field) {
dataForm.addField(field);
}
/**
* Sets a new String value to a given form's field. The field whose variable matches the
* requested variable will be completed with the specified value. If no field could be found
@ -401,7 +401,7 @@ public class Form {
public DataForm.Type getType() {
return dataForm.getType();
}
/**
* Sets instructions that explain how to fill out the form and what the form is about.
@ -417,7 +417,7 @@ public class Form {
}
// Set the new list of instructions
dataForm.setInstructions(instructionsList);
}
@ -430,7 +430,7 @@ public class Form {
public void setTitle(String title) {
dataForm.setTitle(title);
}
/**
* Returns a DataForm that serves to send this Form to the server. If the form is of type
* submit, it may contain fields with no value. These fields will be removed since they only
@ -451,7 +451,7 @@ public class Form {
}
return dataForm;
}
/**
* Returns true if the form is a form to fill out.
*
@ -460,7 +460,7 @@ public class Form {
private boolean isFormType() {
return DataForm.Type.form == dataForm.getType();
}
/**
* Returns true if the form is a form to submit.
*

View file

@ -73,11 +73,11 @@ public class DataForm implements ExtensionElement {
private final List<Item> items = new ArrayList<Item>();
private final List<FormField> fields = new ArrayList<FormField>();
private final List<Element> extensionElements = new ArrayList<Element>();
public DataForm(Type type) {
this.type = type;
}
/**
* Returns the meaning of the data within the context. The data could be part of a form
* to fill out, a form submission or data results.
@ -87,7 +87,7 @@ public class DataForm implements ExtensionElement {
public Type getType() {
return type;
}
/**
* Returns the description of the data. It is similar to the title on a web page or an X
* window. You can put a <title/> on either a form to fill out, or a set of data results.
@ -214,7 +214,7 @@ public class DataForm implements ExtensionElement {
fields.add(field);
}
}
/**
* Adds a new instruction to the list of instructions that explain how to fill out the form
* and what the form is about. The dataform could include multiple instructions since each
@ -320,7 +320,7 @@ public class DataForm implements ExtensionElement {
public static final String ELEMENT = "reported";
private List<FormField> fields = new ArrayList<FormField>();
public ReportedData(List<FormField> fields) {
this.fields = fields;
}
@ -345,7 +345,7 @@ public class DataForm implements ExtensionElement {
return buf;
}
}
/**
*
* Represents items of reported data.
@ -356,11 +356,11 @@ public class DataForm implements ExtensionElement {
public static final String ELEMENT = "item";
private List<FormField> fields = new ArrayList<FormField>();
public Item(List<FormField> fields) {
this.fields = fields;
}
/**
* Returns the fields that define the data that goes with the item.
*
@ -369,7 +369,7 @@ public class DataForm implements ExtensionElement {
public List<FormField> getFields() {
return Collections.unmodifiableList(new ArrayList<FormField>(fields));
}
public CharSequence toXML() {
XmlStringBuilder buf = new XmlStringBuilder();
buf.openElement(ELEMENT);