This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 7de8628 Automated site publishing by Jenkins build 311
7de8628 is described below
commit 7de86287b9af4a3d7b728bbd9f898bb937d6a80c
Author: jenkins <[email protected]>
AuthorDate: Fri Jan 18 09:08:12 2019 +0000
Automated site publishing by Jenkins build 311
---
content/kb/docs/java/code-inspect.html | 155 ++++++---------------------------
1 file changed, 26 insertions(+), 129 deletions(-)
diff --git a/content/kb/docs/java/code-inspect.html
b/content/kb/docs/java/code-inspect.html
index b574fc6..7e3177a 100644
--- a/content/kb/docs/java/code-inspect.html
+++ b/content/kb/docs/java/code-inspect.html
@@ -80,83 +80,30 @@
<div class='grid-container main-content tutorial'>
<div id="toc" class="toc">
<div id="toctitle"></div>
+<ul class="sectlevel1">
+<li><a href="#_static_code_analysis_in_the_netbeans_ide_java_editor">Static
Code Analysis in the NetBeans IDE Java Editor</a>
<ul class="sectlevel2">
-<li><a href="#_contents">Contents</a></li>
<li><a href="#_requirements">Requirements</a></li>
<li><a href="#_setting_up_the_tutorial_environment">Setting Up the Tutorial
Environment</a></li>
-<li><a href="#_using_predefined_configurations">Using Predefined
Configurations</a>
-<ul class="sectlevel2">
-<li><a href="#_running_all_analyzers">Running All Analyzers</a></li>
-<li><a href="#_verifying_java_code_against_netbeans_java_hints">Verifying Java
Code against NetBeans Java Hints</a></li>
-<li><a href="#_finding_potential_problems_in_java_code_with_findbugs">Finding
Potential Problems in Java Code with FindBugs</a></li>
-<li><a href="#_customizing_a_default_configuration">Customizing a Default
Configuration</a></li>
-</ul>
-</li>
+<li><a href="#_using_predefined_configurations">Using Predefined
Configurations</a></li>
<li><a href="#_creating_and_deleting_configurations">Creating and Deleting
Configurations</a></li>
<li><a href="#_running_single_inspections">Running Single Inspections</a></li>
<li><a href="#_summary">Summary</a></li>
-<li><a href="#_see_also">See Also</a></li>
+</ul>
+</li>
</ul>
</div>
-<div id="preamble">
+<div class="sect1">
+<h2 id="_static_code_analysis_in_the_netbeans_ide_java_editor">Static Code
Analysis in the NetBeans IDE Java Editor</h2>
<div class="sectionbody">
<div class="paragraph">
-<p>Jan Lahoda, Alyona Stashkova</p>
-</div>
-<div class="paragraph">
<p>The NetBeans IDE Java Editor has a static code analysis feature, which is a
tool for finding potential problems and detecting inconsistencies in your
source code.</p>
</div>
<div class="paragraph">
<p>In this tutorial, you will learn how to perform static analysis of your
Java code using FindBugs and NetBeans Java Hints without actually running your
applications.</p>
</div>
-</div>
-</div>
<div class="sect2">
-<h3 id="_contents">Contents</h3>
-<div class="imageblock">
-<div class="content">
-<img src="images/netbeans-stamp.png" alt="netbeans stamp">
-</div>
-<div class="title">Figure 1. Content on this page applies to the NetBeans IDE
8.0</div>
-</div>
-<div class="ulist">
-<ul>
-<li>
-<p><a href="#setup">Setting Up the Tutorial Environment</a></p>
-</li>
-<li>
-<p><a href="#config">Using Configurations</a></p>
-</li>
-<li>
-<p><a href="#all">Running All Analyzers</a></p>
-</li>
-<li>
-<p><a href="#hints">Verifying Java Code against NetBeans Java Hints</a></p>
-</li>
-<li>
-<p><a href="#fb">Finding Potential Problems in Java Code with Findbugs</a></p>
-</li>
-<li>
-<p><a href="#default">Customizing a Default Configuration</a></p>
-</li>
-<li>
-<p><a href="#create">Creating and Deleting Configurations</a></p>
-</li>
-<li>
-<p><a href="#inspect">Running Single Inspections</a></p>
-</li>
-<li>
-<p><a href="#summary">Summary</a></p>
-</li>
-<li>
-<p><a href="#seealso">See Also</a></p>
-</li>
-</ul>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_requirements">Requirements</h2>
-<div class="sectionbody">
+<h3 id="_requirements">Requirements</h3>
<div class="paragraph">
<p><strong>To complete this tutorial, you need the following software and
resources.</strong></p>
</div>
@@ -173,14 +120,6 @@
</thead>
<tbody>
<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><a
href="http://netbeans.org/downloads/index.html">NetBeans IDE</a></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Version
8.0</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><a
href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java
Development Kit</a> (JDK)</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Version 7
and higher</p></td>
-</tr>
-<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a
href="https://netbeans.org/projects/samples/downloads/download/Samples/Java/library.zip">library.zip</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
project</p></td>
</tr>
@@ -212,10 +151,8 @@
</div>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_setting_up_the_tutorial_environment">Setting Up the Tutorial
Environment</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_setting_up_the_tutorial_environment">Setting Up the Tutorial
Environment</h3>
<div class="paragraph">
<p>In addition to the required software listed above you should have the
following installed on your computer:</p>
</div>
@@ -275,10 +212,8 @@
</ol>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_using_predefined_configurations">Using Predefined Configurations</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_using_predefined_configurations">Using Predefined Configurations</h3>
<div class="paragraph">
<p>You can use the following predefined configurations when inspecting your
code in the NetBeans IDE:</p>
</div>
@@ -298,8 +233,8 @@
</li>
</ul>
</div>
-<div class="sect2">
-<h3 id="_running_all_analyzers">Running All Analyzers</h3>
+<div class="sect3">
+<h4 id="_running_all_analyzers">Running All Analyzers</h4>
<div class="paragraph">
<p>The <code>All Analyzers</code> configuration deploys all static code
analysis tools available in the IDE.</p>
</div>
@@ -373,8 +308,8 @@ The results of the analysis are displayed in the Inspector
Window as a tree view
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_verifying_java_code_against_netbeans_java_hints">Verifying Java Code
against NetBeans Java Hints</h3>
+<div class="sect3">
+<h4 id="_verifying_java_code_against_netbeans_java_hints">Verifying Java Code
against NetBeans Java Hints</h4>
<div class="paragraph">
<p>The <code>NetBeans Java Hints</code> configuration available in the IDE
enables you to verify if the predefined coding standard rules are satisfied by
the source code under consideration. In other words, it applies a set of
NetBeans Java Hints (also known as code inspections) to your Java source
files.</p>
</div>
@@ -473,8 +408,8 @@ The IDE displays the tree view with the results of the
analysis with the <code>
</tbody>
</table>
</div>
-<div class="sect2">
-<h3 id="_finding_potential_problems_in_java_code_with_findbugs">Finding
Potential Problems in Java Code with FindBugs</h3>
+<div class="sect3">
+<h4 id="_finding_potential_problems_in_java_code_with_findbugs">Finding
Potential Problems in Java Code with FindBugs</h4>
<div class="paragraph">
<p>The <code>FindBugs</code> configuration available in the IDE enables you
to find a wide range of potential problems in your code. It invokes the popular
open source FindBugs tool for code analysis in Java. The bug report gets
generated and is displayed in the Inspector Window of the NetBeans IDE, which
categorizes all the found problems and allows direct navigation from the bugs
in the report to the suspicious code. You can also read a bug description in
the adjacent window or revie [...]
</div>
@@ -616,8 +551,8 @@ If you now press Alt-Enter in the source code where a bug
is reported and click
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_customizing_a_default_configuration">Customizing a Default
Configuration</h3>
+<div class="sect3">
+<h4 id="_customizing_a_default_configuration">Customizing a Default
Configuration</h4>
<div class="paragraph">
<p>While working on your code you may need to customize a predefined
configuration that includes your own NetBeans Java hints or FindBugs bugs.</p>
</div>
@@ -674,10 +609,8 @@ The IDE displays the Configurations dialog box.</p>
</div>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_creating_and_deleting_configurations">Creating and Deleting
Configurations</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_creating_and_deleting_configurations">Creating and Deleting
Configurations</h3>
<div class="paragraph">
<p>You can create and delete your own configurations to be used in the static
analysis of your Java code.</p>
</div>
@@ -787,10 +720,8 @@ The created <code>newConfig</code> configuration is
available in the Configura
<p><strong>Note:</strong> Refer to the <a
href="http://platform.netbeans.org/tutorials/nbm-java-hint.html">NetBeans Java
Hint Module Tutorial</a> for information on how to create a NetBeans module
that provides one or more NetBeans Java hints.</p>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_running_single_inspections">Running Single Inspections</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_running_single_inspections">Running Single Inspections</h3>
<div class="paragraph">
<p>You can inspect your code for a particular deficiency in your source code
using the static code analysis feature in the NetBeans IDE.</p>
</div>
@@ -851,48 +782,14 @@ After the Inspect operation is completed, the hints that
can be applied to your
</ol>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_summary">Summary</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_summary">Summary</h3>
<div class="paragraph">
<p>This tutorial covers most frequent usages of the static code analysis
feature in the NetBeans IDE. Please note that with the static code analysis
functionality you can also perform custom refactorings at a project scope, or
apply particular refactoring configurations to several projects open in the
IDE, etc.</p>
</div>
<div class="paragraph">
<p><a href="#top">top</a></p>
</div>
-<div class="paragraph">
-<p><a
href="/about/contact_form.html?to=3&subject=Feedback:%20Static%20Code%20Analysis%20in%20NetBeans%20IDE">Send
Feedback on This Tutorial</a></p>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_see_also">See Also</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>For related material see the following documents:</p>
-</div>
-<div class="ulist">
-<ul>
-<li>
-<p><a href="code-inspect-screencast.html">Video of the Static Code Analysis
Feature in the NetBeans IDE</a></p>
-</li>
-<li>
-<p><a href="http://wiki.netbeans.org/Java_Hints">Complete List of NetBeans
Java Hints</a></p>
-</li>
-<li>
-<p><a
href="http://wiki.netbeans.org/JavaDeclarativeHintsDescriptionSketch">Description
of NetBeans Java Declarative Hints</a></p>
-</li>
-<li>
-<p><a
href="http://platform.netbeans.org/tutorials/nbm-java-hint.html">NetBeans Java
Hint Module Tutorial</a></p>
-</li>
-<li>
-<p><a
href="http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG613">Using
Hints in Source Code Analysis and Refactoring</a> in <em>Developing
Applications with NetBeans IDE</em></p>
-</li>
-</ul>
-</div>
-<div class="paragraph">
-<p><a href="#top">top</a></p>
</div>
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists