Rename style to builder to make purpose clear in
RegistryCSSPropertyHandlerProvider
Change-Id: Ibc3dd84b818e696fb295dbd1d2fdcffe05bab36b
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/RegistryCSSPropertyHandlerProvider.java b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/RegistryCSSPropertyHandlerProvider.java
index 7f9f17e..408cc81 100644
--- a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/RegistryCSSPropertyHandlerProvider.java
+++ b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/RegistryCSSPropertyHandlerProvider.java
@@ -148,7 +148,7 @@
return stylableElement.getDefaultStyleDeclaration(pseudoE);
}
if (newStyle != null) {
- StringBuilder style = null;
+ StringBuilder builder = null;
int length = newStyle.getLength();
for (int i = 0; i < length; i++) {
String propertyName = newStyle.item(i);
@@ -158,24 +158,24 @@
propertyName = compositePropertyName;
String s = getCSSPropertyStyle(engine, stylableElement, propertyName, pseudoE);
if (s != null) {
- if (style == null) {
- style = new StringBuilder();
+ if (builder == null) {
+ builder = new StringBuilder();
}
- style.append(s);
+ builder.append(s);
}
}
} else {
String s = getCSSPropertyStyle(engine, stylableElement, propertyName, pseudoE);
if (s != null) {
- if (style == null) {
- style = new StringBuilder();
+ if (builder == null) {
+ builder = new StringBuilder();
}
- style.append(s);
+ builder.append(s);
}
}
}
- if (style != null) {
- CSSStyleDeclaration defaultStyleDeclaration = engine.parseStyleDeclaration(style.toString());
+ if (builder != null) {
+ CSSStyleDeclaration defaultStyleDeclaration = engine.parseStyleDeclaration(builder.toString());
stylableElement.setDefaultStyleDeclaration(pseudoE, defaultStyleDeclaration);
return defaultStyleDeclaration;
}