Polish
This commit is contained in:
@@ -31,7 +31,10 @@ import java.util.Set;
|
||||
* @author Dave Syer
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class Layouts {
|
||||
public final class Layouts {
|
||||
|
||||
private Layouts() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the a layout for the given source file.
|
||||
|
||||
@@ -25,6 +25,9 @@ package org.springframework.boot.loader.tools;
|
||||
*/
|
||||
public interface LibraryScope {
|
||||
|
||||
@Override
|
||||
String toString();
|
||||
|
||||
/**
|
||||
* The library is used at compile time and runtime.
|
||||
*/
|
||||
|
||||
@@ -147,6 +147,7 @@ public class RunProcess {
|
||||
reader.close();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,10 +26,13 @@ import sun.misc.SignalHandler;
|
||||
* @since 1.1.0
|
||||
*/
|
||||
@SuppressWarnings("restriction")
|
||||
public class SignalUtils {
|
||||
public final class SignalUtils {
|
||||
|
||||
private static final Signal SIG_INT = new Signal("INT");
|
||||
|
||||
private SignalUtils() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle {@literal INT} signals by calling the specified {@link Runnable}
|
||||
* @param runnable the runnable to call on SIGINT.
|
||||
|
||||
@@ -23,7 +23,12 @@ package org.springframework.boot.loader.tools.sample;
|
||||
*/
|
||||
public class ClassWithMainMethod {
|
||||
|
||||
public void run() {
|
||||
System.out.println("Hello World");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new ClassWithMainMethod().run();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user