Remote trailing whitespace

This commit is contained in:
Phillip Webb
2014-07-02 14:43:43 -07:00
parent 20766078d0
commit fa88c481a5
875 changed files with 958 additions and 958 deletions

View File

@@ -27,7 +27,7 @@ import org.springframework.boot.dependency.tools.Dependency.Exclusion;
/**
* Abstract base implementation for {@link Dependencies}.
*
*
* @author Phillip Webb
* @author Andy Wilkinson
* @since 1.1.0

View File

@@ -18,7 +18,7 @@ package org.springframework.boot.dependency.tools;
/**
* Simple subset of the Spring Assert utility.
*
*
* @author Phillip Webb
*/
class Assert {

View File

@@ -20,7 +20,7 @@ import java.util.Iterator;
/**
* Interface for accessing a known set of dependencies.
*
*
* @author Phillip Webb
* @see Dependency
* @since 1.1.0

View File

@@ -21,7 +21,7 @@ import java.util.List;
/**
* A single dependency.
*
*
* @author Phillip Webb
* @see Dependencies
*/

View File

@@ -24,7 +24,7 @@ import java.util.Iterator;
* {@link Dependencies} used by various spring boot tools. Provides programmatic access to
* 'spring-boot-dependencies' and can also support user defined version managed
* dependencies.
*
*
* @author Phillip Webb
* @see Dependency
*/

View File

@@ -21,7 +21,7 @@ import java.util.Collection;
/**
* {@link Dependencies} delegate used internally by {@link ManagedDependencies}.
*
*
* @author Phillip Webb
* @since 1.1.0
*/

View File

@@ -32,7 +32,7 @@ import org.w3c.dom.NodeList;
/**
* {@link Dependencies} implementation backed a maven POM.
*
*
* @author Phillip Webb
* @author Andy Wilkinson
* @since 1.1.0

View File

@@ -26,7 +26,7 @@ import java.util.TreeMap;
* {@link Dependencies} backed by an external properties file (of the form created by the
* Spring IO platform). The property key should be the groupId and artifactId (in the form
* {@literal groupId:artifactId}) and the value should be the version.
*
*
* @author Phillip Webb
* @since 1.1.0
*/

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link ManagedDependenciesDelegate}.
*
*
* @author Phillip Webb
*/
public class ManagedDependenciesDelegateTests {

View File

@@ -24,7 +24,7 @@ import static org.mockito.Mockito.verify;
/**
* Tests for {@link ManagedDependencies}.
*
*
* @author Phillip Webb
*/
public class ManagedDependenciesTests {

View File

@@ -29,7 +29,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link PomDependencies}.
*
*
* @author Phillip Webb
*/
public class PomDependenciesTests {

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link PropertiesFileDependencies}.
*
*
* @author Phillip Webb
*/
public class PropertiesFileDependenciesTests {

View File

@@ -23,7 +23,7 @@ import java.util.List;
/**
* Utility class to attach an instrumentation agent to the running JVM.
*
*
* @author Dave Syer
*/
public abstract class AgentAttacher {

View File

@@ -25,7 +25,7 @@ import java.security.NoSuchAlgorithmException;
/**
* Utilities for manipulating files and directories in Spring Boot tooling.
*
*
* @author Dave Syer
* @author Phillip Webb
*/

View File

@@ -42,7 +42,7 @@ import java.util.zip.ZipEntry;
/**
* Writes JAR content, ensuring valid directory entries are always create and duplicate
* items are ignored.
*
*
* @author Phillip Webb
* @author Andy Wilkinson
*/

View File

@@ -25,7 +25,7 @@ import org.springframework.util.StringUtils;
/**
* Provides access to the java binary executable, regardless of OS.
*
*
* @author Phillip Webb
* @since 1.1.0
*/

View File

@@ -23,7 +23,7 @@ import java.net.URLClassLoader;
/**
* Java Virtual Machine Utils.
*
*
* @author Phillip Webb
*/
abstract class JvmUtils {

View File

@@ -18,7 +18,7 @@ package org.springframework.boot.loader.tools;
/**
* Strategy interface used to determine the layout for a particular type of archive.
*
*
* @author Phillip Webb
* @see Layouts
*/

View File

@@ -23,7 +23,7 @@ import java.util.Map;
/**
* Common {@link Layout}s.
*
*
* @author Phillip Webb
* @author Dave Syer
*/

View File

@@ -20,7 +20,7 @@ import java.io.IOException;
/**
* Encapsulates information about libraries that may be packed into the archive.
*
*
* @author Phillip Webb
*/
public interface Libraries {

View File

@@ -20,7 +20,7 @@ import java.io.File;
/**
* Encapsulates information about a single library that may be packed into the archive.
*
*
* @author Phillip Webb
* @since 1.1.2
* @see Libraries

View File

@@ -21,7 +21,7 @@ import java.io.IOException;
/**
* Callback interface used to iterate {@link Libraries}.
*
*
* @author Phillip Webb
*/
public interface LibraryCallback {

View File

@@ -20,7 +20,7 @@ package org.springframework.boot.loader.tools;
* The scope of a library. The common {@link #COMPILE}, {@link #RUNTIME} and
* {@link #PROVIDED} scopes are defined here and supported by the common {@link Layouts}.
* A custom {@link Layout} can handle additional scopes as required.
*
*
* @author Phillip Webb
*/
public interface LibraryScope {

View File

@@ -25,7 +25,7 @@ import ch.qos.logback.classic.Level;
/**
* Utility to initialize logback (when present) to use INFO level logging.
*
*
* @author Dave Syer
* @since 1.1.0
*/

View File

@@ -44,7 +44,7 @@ import org.springframework.asm.Type;
/**
* Finds any class with a {@code public static main} method by performing a breadth first
* search.
*
*
* @author Phillip Webb
*/
public abstract class MainClassFinder {

View File

@@ -26,7 +26,7 @@ import java.util.jar.Manifest;
/**
* Utility class that can be used to repackage an archive so that it can be executed using
* '{@literal java -jar}'.
*
*
* @author Phillip Webb
*/
public class Repackager {

View File

@@ -27,7 +27,7 @@ import org.springframework.util.ReflectionUtils;
/**
* Utility used to run a process.
*
*
* @author Phillip Webb
* @author Dave Syer
* @author Andy Wilkinson

View File

@@ -21,7 +21,7 @@ import sun.misc.SignalHandler;
/**
* Utilities for working with signal handling.
*
*
* @author Dave Syer
* @since 1.1.0
*/

View File

@@ -34,7 +34,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests fir {@link FileUtils}.
*
*
* @author Dave Syer
* @author Phillip Webb
*/

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link JvmUtils}.
*
*
* @author Phillip Webb
*/
public class JvmUtilsTests {

View File

@@ -28,7 +28,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link Layouts}.
*
*
* @author Phillip Webb
*/
public class LayoutsTests {

View File

@@ -34,7 +34,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link MainClassFinder}.
*
*
* @author Phillip Webb
*/
public class MainClassFinderTests {

View File

@@ -43,7 +43,7 @@ import static org.mockito.Mockito.mock;
/**
* Tests for {@link Repackager}.
*
*
* @author Phillip Webb
* @author Andy Wilkinson
*/

View File

@@ -18,7 +18,7 @@ package org.springframework.boot.loader.tools.sample;
/**
* Sample class with a main method.
*
*
* @author Phillip Webb
*/
public class ClassWithMainMethod {

View File

@@ -18,7 +18,7 @@ package org.springframework.boot.loader.tools.sample;
/**
* Sample class without a main method.
*
*
* @author Phillip Webb
*/
public class ClassWithoutMainMethod {

View File

@@ -30,7 +30,7 @@ import org.springframework.boot.loader.archive.Archive.EntryFilter;
/**
* Base class for executable archive {@link Launcher}s.
*
*
* @author Phillip Webb
* @author Andy Wilkinson
*/

View File

@@ -30,7 +30,7 @@ import java.util.Set;
/**
* A {@link JavaAgentDetector} that detects jars supplied via the {@code -javaagent} JVM
* input argument.
*
*
* @author Andy Wilkinson
* @since 1.1.0
*/

View File

@@ -24,7 +24,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* {@link Launcher} for JAR based archives. This launcher assumes that dependency jars are
* included inside a {@code /lib} directory.
*
*
* @author Phillip Webb
*/
public class JarLauncher extends ExecutableArchiveLauncher {

View File

@@ -20,7 +20,7 @@ import java.net.URL;
/**
* A strategy for detecting Java agents
*
*
* @author Andy Wilkinson
* @since 1.1.0
*/

View File

@@ -30,7 +30,7 @@ import org.springframework.boot.loader.jar.JarFile;
/**
* {@link ClassLoader} used by the {@link Launcher}.
*
*
* @author Phillip Webb
* @author Dave Syer
*/

View File

@@ -34,7 +34,7 @@ import org.springframework.boot.loader.jar.JarFile;
/**
* Base class for launchers that can start an application with a fully configured
* classpath backed by one or more {@link Archive}s.
*
*
* @author Phillip Webb
* @author Dave Syer
*/

View File

@@ -21,7 +21,7 @@ import java.lang.reflect.Method;
/**
* Utility class that used by {@link Launcher}s to call a main method. This class allows
* methods to be executed within a thread configured with a specific context class loader.
*
*
* @author Phillip Webb
*/
public class MainMethodRunner implements Runnable {

View File

@@ -69,7 +69,7 @@ import org.springframework.boot.loader.util.SystemPropertyUtils;
* <code>Start-Class</code> in a <code>MANIFEST.MF</code>, if there is one in
* <code>${loader.home}/META-INF</code>.</li>
* </ul>
*
*
* @author Dave Syer
* @author Janne Valkealahti
*/

View File

@@ -26,7 +26,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
* {@link Launcher} for WAR based archives. This launcher for standard WAR archives.
* Supports dependencies in {@code WEB-INF/lib} as well as {@code WEB-INF/lib-provided},
* classes are loaded from {@code WEB-INF/classes}.
*
*
* @author Phillip Webb
*/
public class WarLauncher extends ExecutableArchiveLauncher {

View File

@@ -28,7 +28,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* An archive that can be launched by the {@link Launcher}.
*
*
* @author Phillip Webb
* @see JarFileArchive
*/

View File

@@ -39,7 +39,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* {@link Archive} implementation backed by an exploded archive directory.
*
*
* @author Phillip Webb
*/
public class ExplodedArchive extends Archive {

View File

@@ -29,7 +29,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* Decorator to apply an {@link Archive.EntryFilter} to an existing {@link Archive}.
*
*
* @author Dave Syer
*/
public class FilteredArchive extends Archive {

View File

@@ -38,7 +38,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* {@link Archive} implementation backed by a {@link JarFile}.
*
*
* @author Phillip Webb
*/
public class JarFileArchive extends Archive {

View File

@@ -21,7 +21,7 @@ import java.io.InputStream;
/**
* {@link RandomAccessData} implementation backed by a byte array.
*
*
* @author Phillip Webb
*/
public class ByteArrayRandomAccessData implements RandomAccessData {

View File

@@ -22,7 +22,7 @@ import java.io.InputStream;
/**
* Interface that provides read-only random access to some underlying data.
* Implementations must allow concurrent reads in a thread-safe manner.
*
*
* @author Phillip Webb
*/
public interface RandomAccessData {

View File

@@ -26,7 +26,7 @@ import java.util.concurrent.Semaphore;
/**
* {@link RandomAccessData} implementation backed by a {@link RandomAccessFile}.
*
*
* @author Phillip Webb
*/
public class RandomAccessDataFile implements RandomAccessData {

View File

@@ -24,7 +24,7 @@ import org.springframework.boot.loader.data.RandomAccessData.ResourceAccess;
/**
* Utilities for dealing with bytes from ZIP files.
*
*
* @author Phillip Webb
*/
class Bytes {

View File

@@ -22,7 +22,7 @@ import org.springframework.boot.loader.data.RandomAccessData;
/**
* A ZIP File "End of central directory record" (EOCD).
*
*
* @author Phillip Webb
* @see <a href="http://en.wikipedia.org/wiki/Zip_%28file_format%29">Zip File Format</a>
*/

View File

@@ -32,7 +32,7 @@ import java.util.logging.Logger;
/**
* {@link URLStreamHandler} for Spring Boot loader {@link JarFile}s.
*
*
* @author Phillip Webb
* @see JarFile#registerUrlProtocolHandler()
*/

View File

@@ -26,7 +26,7 @@ import java.util.jar.Manifest;
/**
* Extended variant of {@link java.util.jar.JarEntry} returned by {@link JarFile}s.
*
*
* @author Phillip Webb
*/
public class JarEntry extends java.util.jar.JarEntry {

View File

@@ -28,7 +28,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* Holds the underlying data of a {@link JarEntry}, allowing creation to be deferred until
* the entry is actually needed.
*
*
* @author Phillip Webb
*/
public final class JarEntryData {

View File

@@ -20,7 +20,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* Interface that can be used to filter and optionally rename jar entries.
*
*
* @author Phillip Webb
*/
public interface JarEntryFilter {

View File

@@ -51,7 +51,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
* embedded JAR files (as long as their entry is not compressed).</li>
* <li>Entry data can be accessed as {@link RandomAccessData}.</li>
* </ul>
*
*
* @author Phillip Webb
*/
public class JarFile extends java.util.jar.JarFile implements Iterable<JarEntryData> {

View File

@@ -30,7 +30,7 @@ import org.springframework.boot.loader.util.AsciiBytes;
/**
* {@link java.net.JarURLConnection} used to support {@link JarFile#getUrl()}.
*
*
* @author Phillip Webb
*/
class JarURLConnection extends java.net.JarURLConnection {

View File

@@ -25,7 +25,7 @@ import java.util.zip.InflaterInputStream;
/**
* {@link InflaterInputStream} that supports the writing of an extra "dummy" byte (which
* is required with JDK 6) and returns accurate available() results.
*
*
* @author Phillip Webb
*/
class ZipInflaterInputStream extends InflaterInputStream {

View File

@@ -21,7 +21,7 @@ import java.nio.charset.Charset;
/**
* Simple wrapper around a byte array that represents an ASCII. Used for performance
* reasons to save constructing Strings for ZIP data.
*
*
* @author Phillip Webb
*/
public final class AsciiBytes {

View File

@@ -28,11 +28,11 @@ import java.util.Set;
* between key and value.
* <p>
* Adapted from Spring.
*
*
* @author Juergen Hoeller
* @author Rob Harrop
* @author Dave Syer
*
*
* @see System#getProperty(String)
*/
public abstract class SystemPropertyUtils {

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link AsciiBytes}.
*
*
* @author Phillip Webb
*/
public class AsciiBytesTests {

View File

@@ -21,7 +21,7 @@ import org.hamcrest.TypeSafeMatcher;
/**
* Hamcrest matcher to tests that a byte array starts with specific bytes.
*
*
* @author Phillip Webb
*/
public class ByteArrayStartsWith extends TypeSafeMatcher<byte[]> {

View File

@@ -33,7 +33,7 @@ import static org.mockito.Mockito.when;
/**
* Tests for {@link ExecutableArchiveLauncher}
*
*
* @author Andy Wilkinson
*/
public class ExecutableArchiveLauncherTests {

View File

@@ -28,7 +28,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for {@link InputArgumentsJavaAgentDetector}
*
*
* @author Andy Wilkinson
*/
public class InputArgumentsJavaAgentDetectorTests {

View File

@@ -32,7 +32,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for {@link LaunchedURLClassLoader}.
*
*
* @author Dave Syer
* @author Phillip Webb
*/

View File

@@ -27,7 +27,7 @@ import org.junit.runners.model.Statement;
/**
* Capture output from System.out and System.err.
*
*
* @author Phillip Webb
*/
public class OutputCapture implements TestRule {

View File

@@ -37,7 +37,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for {@link PropertiesLauncher}.
*
*
* @author Dave Syer
*/
public class PropertiesLauncherTests {

View File

@@ -29,7 +29,7 @@ import java.util.zip.ZipEntry;
/**
* Creates a simple test jar.
*
*
* @author Phillip Webb
*/
public abstract class TestJarCreator {

View File

@@ -46,7 +46,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link ExplodedArchive}.
*
*
* @author Phillip Webb
* @author Dave Syer
*/

View File

@@ -36,7 +36,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link JarFileArchive}.
*
*
* @author Phillip Webb
*/
public class JarFileArchiveTests {

View File

@@ -25,7 +25,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link ByteArrayRandomAccessData}.
*
*
* @author Phillip Webb
*/
public class ByteArrayRandomAccessDataTest {

View File

@@ -44,7 +44,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link RandomAccessDataFile}.
*
*
* @author Phillip Webb
*/
public class RandomAccessDataFileTests {

View File

@@ -54,7 +54,7 @@ import static org.mockito.Mockito.verify;
/**
* Tests for {@link JarFile}.
*
*
* @author Phillip Webb
* @author Martin Lau
*/

View File

@@ -31,7 +31,7 @@ import org.apache.maven.shared.artifact.filter.collection.FilterArtifacts;
/**
* A base mojo filtering the dependencies of the project.
*
*
* @author Stephane Nicoll
* @since 1.1
*/

View File

@@ -32,7 +32,7 @@ import org.springframework.boot.loader.tools.LibraryScope;
/**
* {@link Libraries} backed by Maven {@link Artifact}s
*
*
* @author Phillip Webb
* @author Andy Wilkinson
*/

View File

@@ -20,7 +20,7 @@ import org.apache.maven.plugins.annotations.Parameter;
/**
* A model for a dependency to exclude.
*
*
* @author Stephane Nicoll
* @since 1.1
*/

View File

@@ -28,7 +28,7 @@ import org.apache.maven.shared.artifact.filter.collection.ArtifactFilterExceptio
* An {@link org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
* ArtifactsFilter} that filters out any artifact matching a configurable list of
* {@link Exclude} instances.
*
*
* @author Stephane Nicoll
* @since 1.1
*/

View File

@@ -22,11 +22,11 @@ import org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatur
/**
* An {@link org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
* ArtifactsFilter} that filters by matching groupId.
*
*
* Preferred over the
* {@link org.apache.maven.shared.artifact.filter.collection.GroupIdFilter} due to that
* classes use of {@link String#startsWith} to match on prefix.
*
*
* @author Mark Ingram
* @since 1.1
*/

View File

@@ -30,7 +30,7 @@ import org.apache.maven.plugins.shade.resource.ResourceTransformer;
* Extension for the <a href="http://maven.apache.org/plugins/maven-shade-plugin/">Maven
* shade plugin</a> to allow properties files (e.g. {@literal META-INF/spring.factories})
* to be merged without losing any information.
*
*
* @author Dave Syer
*/
public class PropertiesMergingResourceTransformer implements ResourceTransformer {

View File

@@ -43,7 +43,7 @@ import org.springframework.boot.loader.tools.Repackager;
* Repackages existing JAR and WAR archives so that they can be executed from the command
* line using {@literal java -jar}. With <code>layout=NONE</code> can also be used simply
* to package a JAR with nested dependencies (and no main class, so not executable).
*
*
* @author Phillip Webb
* @author Dave Syer
* @author Stephane Nicoll

View File

@@ -20,7 +20,7 @@ import org.codehaus.plexus.util.cli.CommandLineUtils;
/**
* Parse and expose arguments specified as {@link RunMojo} parameters.
*
*
* @author Stephane Nicoll
* @since 1.1.0
*/

View File

@@ -46,7 +46,7 @@ import org.springframework.boot.loader.tools.RunProcess;
/**
* Run an executable archive application.
*
*
* @author Phillip Webb
* @author Stephane Nicoll
*/

View File

@@ -39,7 +39,7 @@ import static org.mockito.Mockito.verify;
/**
* Tests for {@link ArtifactsLibraries}.
*
*
* @author Phillip Webb
*/
public class ArtifactsLibrariesTests {

View File

@@ -34,7 +34,7 @@ import static org.mockito.Mockito.mock;
/**
* Tests for {@link AbstractDependencyFilterMojo}.
*
*
* @author Stephane Nicoll
*/
public class DependencyFilterMojoTests {

View File

@@ -32,7 +32,7 @@ import static org.mockito.Mockito.mock;
/**
* Tests for {@link ExcludeFilter}.
*
*
* @author Stephane Nicoll
*/
@SuppressWarnings("rawtypes")

View File

@@ -29,7 +29,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for {@link PropertiesMergingResourceTransformer}.
*
*
* @author Dave Syer
*/
public class PropertiesMergingResourceTransformerTests {

View File

@@ -23,7 +23,7 @@ import static org.junit.Assert.assertNotNull;
/**
* Tests for {@link RunArguments}.
*
*
* @author Stephane Nicoll
*/
public class RunArgumentsTests {

View File

@@ -31,7 +31,7 @@ import static org.junit.Assert.assertTrue;
/**
* Verification utility for use with maven-invoker-plugin verification scripts.
*
*
* @author Phillip Webb
*/
public class Verify {

View File

@@ -18,7 +18,7 @@ package org.springframework.boot.maven.sample;
/**
* Sample class with a main method.
*
*
* @author Phillip Webb
*/
public class ClassWithMainMethod {

View File

@@ -18,7 +18,7 @@ package org.springframework.boot.maven.sample;
/**
* Sample class without a main method.
*
*
* @author Phillip Webb
*/
public class ClassWithoutMainMethod {