Skip to content

Commit

Permalink
Carstenartur/master (#22)
Browse files Browse the repository at this point in the history
* Bug <tbd> - add N&N Entry for System property extension

Add short entry to show variants supported by system property extension.
Now supporting long and integer and boolean variant with default value.

Change-Id: I98b8af75f4dcc8859264de4f44f4e916854a788b
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>

* Create codeql-analysis.yml

* Revert "Create codeql-analysis.yml"

This reverts commit 8c165f6.

* Modify N&N

- fixes #47

Co-authored-by: Carsten Hammer <carsten.hammer@t-online.de>
Co-authored-by: Sravan Kumar Lakkimsetti <77106773+sravanlakkimsetti@users.noreply.github.com>
  • Loading branch information
3 people committed May 30, 2022
1 parent db9824c commit a7851c1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Binary file added 4.24/images/systemproperty-after.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 4.24/images/systemproperty-before.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 4.24/images/systemproperty-option.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions 4.24/jdt.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,26 @@ <h2>Java Editor </h2>
<p><img src="images/extend_interface_assist.png" alt="Before" /></p>
</td>
</tr>

<tr id="extend-system-properties"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571823 -->
<td class="title"><a href="#extend-system-properties">Extend Replace System.getProperty() calls clean up</a></td>
<td class="content">
The existing clean up has been extended to replace more <code>System.getProperty()</code> calls with suitable Java method calls instead.
The previous <b>Boolean type property</b> option has been renamed to <b>Boxed type property</b> and now handles Boolean, Integer, and Long.
To specify, select the <b>Replace sytem property with constant</b> option and the sub-option: <b>Boxed type property</b> on the <b>Java Feature</b> page of your cleanup profile.
<p>
<img src="images/systemproperty-option.png" alt="Options"/>
</p>
<p>
For the given code:
</p>
<p><img src="images/systemproperty-before.png" alt="Before"/></p>
<p>
One gets:
</p>
<p><img src="images/systemproperty-after.png" alt="After"/></p>
</td>
</tr>

<tr id="create_sub_type_for_sealed_type"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=577317 -->
<td class="title"><a href="#create_sub_type_for_sealed_type">Create sub type for sealed super type</a></td>
Expand Down

0 comments on commit a7851c1

Please sign in to comment.