Skip to content

Commit

Permalink
DOC: simplify Quarkus example even further
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed May 13, 2020
1 parent 6365682 commit eea3f2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6292,7 +6292,6 @@ NOTE: As of this writing, there is work in progress in the Quarkus community on

[source,java]
----
import io.quarkus.runtime.Quarkus;
import io.quarkus.runtime.QuarkusApplication;
import io.quarkus.runtime.annotations.QuarkusMain;
import picocli.CommandLine;
Expand All @@ -6317,10 +6316,6 @@ public class MyQuarkusApp implements Runnable, QuarkusApplication {
public int run(String... args) {
return new CommandLine(this, cdiFactory).execute(args);
}
public static void main(String[] args) {
Quarkus.run(MyQuarkusApp.class, args);
}
}
----

Expand Down
7 changes: 1 addition & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9416,8 +9416,7 @@ <h3 id="_quarkus_example">21.5. Quarkus Example</h3>
</div>
<div class="listingblock">
<div class="content">
<pre class="CodeRay highlight"><code data-lang="java"><span class="keyword">import</span> <span class="include">io.quarkus.runtime.Quarkus</span>;
<span class="keyword">import</span> <span class="include">io.quarkus.runtime.QuarkusApplication</span>;
<pre class="CodeRay highlight"><code data-lang="java"><span class="keyword">import</span> <span class="include">io.quarkus.runtime.QuarkusApplication</span>;
<span class="keyword">import</span> <span class="include">io.quarkus.runtime.annotations.QuarkusMain</span>;
<span class="keyword">import</span> <span class="include">picocli.CommandLine</span>;
<span class="keyword">import</span> <span class="include">picocli.CommandLine.Command</span>;
Expand All @@ -9441,10 +9440,6 @@ <h3 id="_quarkus_example">21.5. Quarkus Example</h3>
<span class="directive">public</span> <span class="type">int</span> run(<span class="predefined-type">String</span>... args) {
<span class="keyword">return</span> <span class="keyword">new</span> CommandLine(<span class="local-variable">this</span>, cdiFactory).execute(args);
}

<span class="directive">public</span> <span class="directive">static</span> <span class="type">void</span> main(<span class="predefined-type">String</span><span class="type">[]</span> args) {
Quarkus.run(MyQuarkusApp.class, args);
}
}</code></pre>
</div>
</div>
Expand Down

0 comments on commit eea3f2f

Please sign in to comment.