mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 02:49:06 +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) {
|
||||
if (a == null && b == null) {
|
||||
return true;
|
||||
}
|
||||
if (a != null || b != null) {
|
||||
return false;
|
||||
}
|
||||
return a.equals(b);
|
||||
return (a == null && b == null) || (a != null && a.equals(b));
|
||||
}
|
||||
|
||||
public SuggestEngineResult(String suggestedLine) {
|
||||
|
Loading…
Reference in New Issue
Block a user