1
0
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:
robert 2019-01-23 15:06:04 +00:00
parent 1ec667cc0b
commit ec0611d7cf

View File

@ -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) {