mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-26 05:32:58 +08:00
Polish
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,6 +18,7 @@ package io.spring.initializr.metadata;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -185,7 +186,7 @@ public final class InitializrMetadataBuilder {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(ResourceInitializrMetadataCustomizer.class);
|
||||
|
||||
private static final Charset UTF_8 = Charset.forName("UTF-8");
|
||||
private static final Charset UTF_8 = StandardCharsets.UTF_8;
|
||||
|
||||
private final Resource resource;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -26,7 +26,7 @@ public interface InitializrMetadataCustomizer {
|
||||
/**
|
||||
* Customize the {@link InitializrMetadata}, updating or moving around capabilities
|
||||
* before they are validated.
|
||||
* @param metadata the initalizr metadata
|
||||
* @param metadata the initializr metadata
|
||||
*/
|
||||
void customize(InitializrMetadata metadata);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user