From 69f99fb6deb68390b5837c5dfc824886b9bbc9c5 Mon Sep 17 00:00:00 2001 From: Sasa Zivkov Date: Mon, 24 Jun 2013 16:54:15 +0200 Subject: [PATCH] Fix code snippet formatting for Plugins own InitStep The wrong indentation level resulted in bad code snippet formatting. Change-Id: Ib30559caac133a1511261427bf0a4a4e05ecd6df --- Documentation/dev-plugins.txt | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt index 78cf7f6ea2..0e2cfc3371 100644 --- a/Documentation/dev-plugins.txt +++ b/Documentation/dev-plugins.txt @@ -217,26 +217,26 @@ Plugins InitStep cannot refer to Gerrit DB Schema or any other Gerrit runtime objects injected at startup. ==== -public class MyInitStep implements InitStep { - private final ConsoleUI ui; - private final Section.Factory sections; - private final String pluginName; + public class MyInitStep implements InitStep { + private final ConsoleUI ui; + private final Section.Factory sections; + private final String pluginName; - @Inject - public GitBlitInitStep(final ConsoleUI ui, Section.Factory sections, @PluginName String pluginName) { - this.ui = ui; - this.sections = sections; - this.pluginName = pluginName; + @Inject + public GitBlitInitStep(final ConsoleUI ui, Section.Factory sections, @PluginName String pluginName) { + this.ui = ui; + this.sections = sections; + this.pluginName = pluginName; + } + + @Override + public void run() throws Exception { + ui.header("\nMy plugin"); + + Section mySection = getSection("myplugin", null); + mySection.string("Link name", "linkname", "MyLink"); + } } - - @Override - public void run() throws Exception { - ui.header("\nMy plugin"); - - Section mySection = getSection("myplugin", null); - mySection.string("Link name", "linkname", "MyLink"); - } -} ==== [[classpath]]