Polish Javadoc
This commit is contained in:
@@ -33,7 +33,7 @@ import org.springframework.boot.configurationprocessor.metadata.InvalidConfigura
|
||||
import org.springframework.boot.configurationprocessor.metadata.JsonMarshaller;
|
||||
|
||||
/**
|
||||
* A {@code MetadataStore} is responsible for the storage of metadata on the filesystem
|
||||
* A {@code MetadataStore} is responsible for the storage of metadata on the filesystem.
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
* @since 1.2.2
|
||||
|
||||
@@ -54,6 +54,9 @@ public class JavaCompilerFieldValuesParser implements FieldValuesParser {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link TreeVisitor} to collect fields.
|
||||
*/
|
||||
private static class FieldCollector implements TreeVisitor {
|
||||
|
||||
private static final Map<String, Class<?>> WRAPPER_TYPES;
|
||||
|
||||
@@ -84,14 +84,16 @@ public class ConfigurationMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the meta-data properties.
|
||||
* Return item meta-data.
|
||||
* @return the items
|
||||
*/
|
||||
public List<ItemMetadata> getItems() {
|
||||
return flattenValues(this.items);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the meta-data hints.
|
||||
* Return hint meta-data.
|
||||
* @return the hints
|
||||
*/
|
||||
public List<ItemHint> getHints() {
|
||||
return flattenValues(this.hints);
|
||||
|
||||
@@ -88,6 +88,9 @@ public class ItemHint implements Comparable<ItemHint> {
|
||||
+ ", providers=" + this.providers + '}';
|
||||
}
|
||||
|
||||
/**
|
||||
* A hint for a value.
|
||||
*/
|
||||
public static class ValueHint {
|
||||
|
||||
private final Object value;
|
||||
@@ -115,6 +118,9 @@ public class ItemHint implements Comparable<ItemHint> {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* A value provider.
|
||||
*/
|
||||
public static class ValueProvider {
|
||||
|
||||
private final String name;
|
||||
|
||||
@@ -172,7 +172,17 @@ public class ItemMetadata implements Comparable<ItemMetadata> {
|
||||
* The item type.
|
||||
*/
|
||||
public enum ItemType {
|
||||
GROUP, PROPERTY
|
||||
|
||||
/**
|
||||
* Group item type.
|
||||
*/
|
||||
GROUP,
|
||||
|
||||
/**
|
||||
* Property item type.
|
||||
*/
|
||||
PROPERTY
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ public class TestProject {
|
||||
/**
|
||||
* Restore source code of given class to its original contents.
|
||||
* @param type the class to revert
|
||||
* @throws IOException
|
||||
* @throws IOException in case of I/O errors
|
||||
*/
|
||||
public void revert(Class<?> type) throws IOException {
|
||||
Assert.assertTrue(getSourceFile(type).exists());
|
||||
@@ -170,7 +170,7 @@ public class TestProject {
|
||||
/**
|
||||
* Add source code of given class to this project.
|
||||
* @param type the class to add
|
||||
* @throws IOException
|
||||
* @throws IOException in case of I/O errors
|
||||
*/
|
||||
public void add(Class<?> type) throws IOException {
|
||||
Assert.assertFalse(getSourceFile(type).exists());
|
||||
|
||||
Reference in New Issue
Block a user