Polish
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 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.
|
||||
@@ -36,7 +36,7 @@ public interface FieldValuesParser {
|
||||
* Implementation of {@link FieldValuesParser} that always returns an empty
|
||||
* result.
|
||||
*/
|
||||
public static final FieldValuesParser NONE = new FieldValuesParser() {
|
||||
FieldValuesParser NONE = new FieldValuesParser() {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getFieldValues(TypeElement element) {
|
||||
|
||||
@@ -30,6 +30,6 @@ public interface PluginFeatures {
|
||||
* Apply the features to the specified project.
|
||||
* @param project the project to apply features to
|
||||
*/
|
||||
public void apply(Project project);
|
||||
void apply(Project project);
|
||||
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ public class JarWriter {
|
||||
/**
|
||||
* Interface used to write jar entry date.
|
||||
*/
|
||||
private static interface EntryWriter {
|
||||
private interface EntryWriter {
|
||||
|
||||
/**
|
||||
* Write entry data to the specified output stream
|
||||
|
||||
@@ -28,7 +28,7 @@ public interface Libraries {
|
||||
/**
|
||||
* Represents no libraries.
|
||||
*/
|
||||
public static Libraries NONE = new Libraries() {
|
||||
Libraries NONE = new Libraries() {
|
||||
@Override
|
||||
public void doWithLibraries(LibraryCallback callback) throws IOException {
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2015 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.
|
||||
@@ -28,7 +28,7 @@ public interface LibraryScope {
|
||||
/**
|
||||
* The library is used at compile time and runtime.
|
||||
*/
|
||||
public static final LibraryScope COMPILE = new LibraryScope() {
|
||||
LibraryScope COMPILE = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -40,7 +40,7 @@ public interface LibraryScope {
|
||||
/**
|
||||
* The library is used at runtime but not needed for compile.
|
||||
*/
|
||||
public static final LibraryScope RUNTIME = new LibraryScope() {
|
||||
LibraryScope RUNTIME = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -52,7 +52,7 @@ public interface LibraryScope {
|
||||
/**
|
||||
* The library is needed for compile but is usually provided when running.
|
||||
*/
|
||||
public static final LibraryScope PROVIDED = new LibraryScope() {
|
||||
LibraryScope PROVIDED = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -64,7 +64,7 @@ public interface LibraryScope {
|
||||
/**
|
||||
* Marker for custom scope when custom configuration is used.
|
||||
*/
|
||||
public static final LibraryScope CUSTOM = new LibraryScope() {
|
||||
LibraryScope CUSTOM = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
@@ -313,7 +313,7 @@ public abstract class MainClassFinder {
|
||||
* Callback interface used to receive class names.
|
||||
* @param <T> the result type
|
||||
*/
|
||||
public static interface ClassNameCallback<T> {
|
||||
public interface ClassNameCallback<T> {
|
||||
|
||||
/**
|
||||
* Handle the specified class name
|
||||
|
||||
@@ -32,6 +32,6 @@ public interface JavaAgentDetector {
|
||||
* @param url The url to examine
|
||||
* @return if the URL points to a Java agent
|
||||
*/
|
||||
public boolean isJavaAgentJar(URL url);
|
||||
boolean isJavaAgentJar(URL url);
|
||||
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public abstract class Archive {
|
||||
/**
|
||||
* Represents a single entry in the archive.
|
||||
*/
|
||||
public static interface Entry {
|
||||
public interface Entry {
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the entry represents a directory.
|
||||
@@ -123,7 +123,7 @@ public abstract class Archive {
|
||||
/**
|
||||
* Strategy interface to filter {@link Entry Entries}.
|
||||
*/
|
||||
public static interface EntryFilter {
|
||||
public interface EntryFilter {
|
||||
|
||||
/**
|
||||
* Apply the jar entry filter.
|
||||
@@ -137,7 +137,7 @@ public abstract class Archive {
|
||||
/**
|
||||
* Strategy interface to filter or rename {@link Entry Entries}.
|
||||
*/
|
||||
public static interface EntryRenameFilter {
|
||||
public interface EntryRenameFilter {
|
||||
|
||||
/**
|
||||
* Apply the jar entry filter.
|
||||
|
||||
Reference in New Issue
Block a user