diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2018-07-07 11:26:11 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2018-07-07 11:26:11 +0300 |
commit | 5587adb63ae7a51397196f28d3a97d579b04542a (patch) | |
tree | 5a460333b06382c00793dd6948a6ac94e75db777 /demo_gradle | |
parent | c421a3b4e02822d65252b868ecbef3d1a0b09fd8 (diff) | |
download | pf4j-5587adb63ae7a51397196f28d3a97d579b04542a.tar.gz pf4j-5587adb63ae7a51397196f28d3a97d579b04542a.zip |
Tabs to spaces
Diffstat (limited to 'demo_gradle')
3 files changed, 13 insertions, 12 deletions
diff --git a/demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java b/demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java index cbf6007..ebc5c31 100644 --- a/demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java +++ b/demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java @@ -94,19 +94,19 @@ public class Boot { /* Runtime.getRuntime().addShutdownHook(new Thread() { - @Override - public void run() { - pluginManager.stopPlugins(); - } + @Override + public void run() { + pluginManager.stopPlugins(); + } }); */ } - private static void printLogo() { - logger.info(StringUtils.repeat("#", 40)); - logger.info(StringUtils.center("PF4J-DEMO", 40)); - logger.info(StringUtils.repeat("#", 40)); - } + private static void printLogo() { + logger.info(StringUtils.repeat("#", 40)); + logger.info(StringUtils.center("PF4J-DEMO", 40)); + logger.info(StringUtils.repeat("#", 40)); + } } diff --git a/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java b/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java index 65f4d28..aaf1804 100644 --- a/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java +++ b/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java @@ -28,6 +28,7 @@ import org.pf4j.demo.api.Greeting; * @author Decebal Suiu */ public class WelcomePlugin extends Plugin { + private static final Logger logger = LoggerFactory.getLogger(WelcomePlugin.class); public WelcomePlugin(PluginWrapper wrapper) { @@ -37,7 +38,7 @@ public class WelcomePlugin extends Plugin { @Override public void start() { logger.info("WelcomePlugin.start()"); - logger.info(StringUtils.upperCase("WelcomePlugin")); + logger.info(StringUtils.upperCase("WelcomePlugin")); } @Override @@ -48,7 +49,7 @@ public class WelcomePlugin extends Plugin { @Extension public static class WelcomeGreeting implements Greeting { - @Override + @Override public String getGreeting() { return "Welcome"; } diff --git a/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java b/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java index d3af229..f9c7797 100644 --- a/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java +++ b/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java @@ -47,7 +47,7 @@ public class HelloPlugin extends Plugin { @Extension(ordinal=1) public static class HelloGreeting implements Greeting { - @Override + @Override public String getGreeting() { return "Hello"; } |