All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.uuidcode.util.CoreExclusionStrategy Maven / Gradle / Ivy

There is a newer version: 0.0.64
Show newest version
package com.github.uuidcode.util;

import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;

class CoreExclusionStrategy implements ExclusionStrategy {
    @Override
    public boolean shouldSkipField(FieldAttributes fieldAttributes) {
        if (fieldAttributes.getDeclaredClass().equals(Class.class)) {
            return true;
        }

        return false;
    }

    @Override
    public boolean shouldSkipClass(Class aClass) {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy