mirror of
https://github.com/octoleo/plantuml.git
synced 2025-01-03 07:12:29 +00:00
Fix SuggestEngineResult.sameString for two non-null strings
This commit is contained in:
parent
1ec667cc0b
commit
ec0611d7cf
@ -71,13 +71,7 @@ public class SuggestEngineResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean sameString(String a, String b) {
|
private static boolean sameString(String a, String b) {
|
||||||
if (a == null && b == null) {
|
return (a == null && b == null) || (a != null && a.equals(b));
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (a != null || b != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return a.equals(b);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public SuggestEngineResult(String suggestedLine) {
|
public SuggestEngineResult(String suggestedLine) {
|
||||||
|
Loading…
Reference in New Issue
Block a user