-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert return statement to use Optional.ofNullable(xxx)/Optional.of(…
…xxx) in methods with Optional return type #56
- Loading branch information
Showing
8 changed files
with
276 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
<groupId>de.markiewb.netbeans.plugins</groupId> | ||
<artifactId>AdditionalHints</artifactId> | ||
<version>1.6.0</version> | ||
<version>1.6.0.1</version> | ||
<packaging>nbm</packaging> | ||
|
||
<name>Additional Java hints</name> | ||
|
@@ -14,7 +14,7 @@ | |
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> | ||
<netbeans.version>RELEASE74</netbeans.version> | ||
<netbeans.run.params.ide/> | ||
<netbeans.run.params>-J-javaagent:"${current.jrebel.agent.path}" -J-Drebel.log=true ${netbeans.run.params.ide}</netbeans.run.params> | ||
<!--<netbeans.run.params>-J-javaagent:"${current.jrebel.agent.path}" -J-Drebel.log=true ${netbeans.run.params.ide}</netbeans.run.params>--> | ||
</properties> | ||
<organization> | ||
<name>Benno Markiewicz ([email protected])</name> | ||
|
@@ -238,6 +238,7 @@ | |
<li>"Detect dead instanceof-expressions" (since 1.4, no transformation)</li> | ||
<li>"Replace with Optional.isPresent()/Convert return null to return Optional.empty()" (since 1.5)</li> | ||
<li>Replace with null-assignment to Optional with Optional.empty() (since 1.6)</li> | ||
<li>Convert return xxx to return Optional.ofNullable(xxx)/Optional.of(xxx)/Optional.empty() (since 1.6)</li> | ||
</ul> | ||
|
||
<h2>Example:</h2> | ||
|
@@ -246,8 +247,9 @@ | |
<h2>Updates</h2> | ||
<h3>1.6.0:</h3> | ||
<ul> | ||
<li>[<a href="https://github.com/markiewb/nb-additional-hints/issues/54">Updated Fix</a>]: "Replace +..." works for more expressions</li> | ||
<li>[<a href="https://github.com/markiewb/nb-additional-hints/issues/55">New Fix</a>]: Replace with null-assignment to Optional with Optional.empty()</li> | ||
<li>[<a href="https://github.com/markiewb/nb-additional-hints/issues/56">New Fix</a>]: Convert return xxx to return Optional.ofNullable(xxx)/Optional.of(xxx)/Optional.empty()</li> | ||
<li>[<a href="https://github.com/markiewb/nb-additional-hints/issues/54">Updated Fix</a>]: "Replace +..." works for more expressions</li> | ||
</ul> | ||
<h3>1.5.0:</h3> | ||
<ul> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.