Polishing: fix a number of compiler warnings reported by Eclipse
This commit is contained in:
parent
a38f01f9e5
commit
051ebf3fac
|
|
@ -179,7 +179,7 @@ public class ConfigurationMetadata {
|
||||||
return first + "-" + second;
|
return first + "-" + second;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static <T extends Comparable> List<T> flattenValues(MultiValueMap<?, T> map) {
|
private static <T extends Comparable<T>> List<T> flattenValues(MultiValueMap<?, T> map) {
|
||||||
List<T> content = new ArrayList<T>();
|
List<T> content = new ArrayList<T>();
|
||||||
for (List<T> values : map.values()) {
|
for (List<T> values : map.values()) {
|
||||||
content.addAll(values);
|
content.addAll(values);
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import lombok.Data;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ConfigurationProperties(prefix = "data")
|
@ConfigurationProperties(prefix = "data")
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public class LombokSimpleDataProperties {
|
public class LombokSimpleDataProperties {
|
||||||
|
|
||||||
private final String id = "super-id";
|
private final String id = "super-id";
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ import lombok.Setter;
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@ConfigurationProperties(prefix = "simple")
|
@ConfigurationProperties(prefix = "simple")
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public class LombokSimpleProperties {
|
public class LombokSimpleProperties {
|
||||||
|
|
||||||
private final String id = "super-id";
|
private final String id = "super-id";
|
||||||
|
|
|
||||||
|
|
@ -243,6 +243,7 @@ public class RandomAccessDataFile implements RandomAccessData {
|
||||||
this.files = new ConcurrentLinkedQueue<RandomAccessFile>();
|
this.files = new ConcurrentLinkedQueue<RandomAccessFile>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("resource")
|
||||||
public RandomAccessFile acquire() throws IOException {
|
public RandomAccessFile acquire() throws IOException {
|
||||||
try {
|
try {
|
||||||
this.available.acquire();
|
this.available.acquire();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue