mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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;
|
||||
}
|
||||
|
||||
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>();
|
||||
for (List<T> values : map.values()) {
|
||||
content.addAll(values);
|
||||
|
@ -30,6 +30,7 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
@ConfigurationProperties(prefix = "data")
|
||||
@SuppressWarnings("unused")
|
||||
public class LombokSimpleDataProperties {
|
||||
|
||||
private final String id = "super-id";
|
||||
|
@ -32,6 +32,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@ConfigurationProperties(prefix = "simple")
|
||||
@SuppressWarnings("unused")
|
||||
public class LombokSimpleProperties {
|
||||
|
||||
private final String id = "super-id";
|
||||
|
@ -243,6 +243,7 @@ public class RandomAccessDataFile implements RandomAccessData {
|
||||
this.files = new ConcurrentLinkedQueue<RandomAccessFile>();
|
||||
}
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
public RandomAccessFile acquire() throws IOException {
|
||||
try {
|
||||
this.available.acquire();
|
||||
|
Loading…
Reference in New Issue
Block a user