Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cleanup] Remove internally deprecated default class not used #707

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,18 @@
import java.io.Closeable;
import java.util.Collections;
import java.util.Map;
import java.util.Properties;

/**
*/
public interface PropertiesProvider extends Closeable {

default void init(AbstractLicenseMojo mojo, Map<String, String> currentProperties) {
// Do nothing on default
}

default Map<String, String> adjustProperties(AbstractLicenseMojo mojo,
Map<String, String> currentProperties, Document document) {
Properties properties = new Properties();
properties.putAll(currentProperties);
return getAdditionalProperties(mojo, properties, document);
}

/**
* Gets the additional properties.
*
* @param mojo the maven mojo
* @param currentProperties the current properties
* @param document the document to process
* @return the additional properties
*
* @deprecated Use instead {@link #adjustProperties(AbstractLicenseMojo, Map, Document)}
*/
@Deprecated
default Map<String, String> getAdditionalProperties(AbstractLicenseMojo mojo,
Properties currentProperties, Document document) {
// Return empty collection on default
return Collections.emptyMap();
}

Expand Down