

def calculate_sources(self, targets):
    sources = set()
    for target in sources:
        sources.update((source for source in target.sources_relative_to_buildroot() if source.endswith(self._JAVA_SOURCE_EXTENSION)))
    return sources

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/tasks/checkstyle.py Checkstyle.calculate_sources/VarMisuse@21/23 `targets`->`sources`