1
0
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:
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) { 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) {