8072433: copy/paste duplicated tests in some condition statements

Reviewed-by: bae, serb
This commit is contained in:
Phil Race 2015-02-04 10:29:51 -08:00
parent a75613049b
commit 9ea6ddb851
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class FontFamily {
family.bolditalic = null;
}
if (family.plain == null && family.bold == null &&
family.plain == null && family.bold == null) {
family.italic == null && family.bolditalic == null) {
familyNameMap.remove(name);
}
}

View File

@ -1564,7 +1564,7 @@ public class ServiceDialog extends JDialog implements ActionListener {
bmObj = bmTmpObj;
} else {
if (lmObj == null || rmObj == null ||
tmObj == null || rmObj == null) {
tmObj == null || bmObj == null) {
return;
} else {
leftMargin.setValue(lmObj);