commit | 43182cf2cd40f4030d0a1088b920b65209b3b52e | [log] [tgz] |
---|---|---|
author | Nick Sandonato <nsandona@us.ibm.com> | Wed Nov 06 23:37:11 2013 -0500 |
committer | Nick Sandonato <nsandona@us.ibm.com> | Wed Nov 06 23:37:11 2013 -0500 |
tree | 7f0d6580ddc3d8d53f433519668fb7ea5431d2d1 | |
parent | 36d3b61474a4ba863daa079ea7c9000a4a10d419 [diff] |
[nobug] Fix compile errors for post-1.4 API
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java index bf68297..4b3b8e2 100644 --- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java +++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/validate/HTMLAttributeValidator.java
@@ -400,13 +400,13 @@ HTMLCorePreferenceNames.ATTRIBUTE_NAMES_TO_IGNORE, HTMLCorePreferenceNames.ATTRIBUTE_NAMES_TO_IGNORE_DEFAULT, fLookupOrder); - if (ignoreList.trim().isEmpty()) + if (ignoreList.trim().length() == 0) return result; String[] names = ignoreList.split(","); //$NON-NLS-1$ for (int i = 0; names != null && i < names.length; i++) { String name = names[i] == null ? null : names[i].trim(); - if (name != null && !name.isEmpty()) + if (name != null && name.length() > 0) result.add(name.toLowerCase()); } }
diff --git a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/text/correction/HTMLAttributeValidationQuickFixProcessor.java b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/text/correction/HTMLAttributeValidationQuickFixProcessor.java index 5e3f7cd..e3028f3 100644 --- a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/text/correction/HTMLAttributeValidationQuickFixProcessor.java +++ b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/text/correction/HTMLAttributeValidationQuickFixProcessor.java
@@ -149,11 +149,11 @@ HTMLCorePreferenceNames.ATTRIBUTE_NAMES_TO_IGNORE_DEFAULT, fLookupOrder); Set result = new HashSet(); - if (!ignoreList.trim().isEmpty()) { + if (ignoreList.trim().length() > 0) { String[] names = ignoreList.split(","); //$NON-NLS-1$ for (int i = 0; names != null && i < names.length; i++) { String name = names[i] == null ? null : names[i].trim(); - if (name != null && !name.isEmpty()) + if (name != null && name.length() > 0) result.add(name.toLowerCase()); } }