+
+ //Don't think we actually have static fields...so this should be safe
+ @Override
+ protected void serializeClassLoaders(){
+ }
+
+ protected void serializeClass (StaticElementInfo sei){
+ // buf.add(sei.getStatus());
+
+ Fields fields = sei.getFields();
+ ClassInfo ci = sei.getClassInfo();
+ FinalBitSet filtered = getStaticFilterMask(ci);
+ FinalBitSet refs = getStaticRefMask(ci);
+ int max = ci.getStaticDataSize();
+ if (SmartThingsConfig.instance.staticClass(ci))
+ return;
+ for (int i = 0; i < max; i++) {
+ if (!filtered.get(i)) {
+ int v = fields.getIntValue(i);
+ if (refs.get(i)) {
+ processReference(v);
+ } else {
+ buf.add(v);
+ }
+ }
+ }
+ }
+