This commit is contained in:
Stephane Nicoll
2020-01-01 08:41:11 +01:00
parent cdafc45e14
commit 945b118b0c
9 changed files with 21 additions and 23 deletions

View File

@@ -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;

View File

@@ -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);