Netflix / governator

Governator is a library of extensions and utilities that enhance Google Guice to provide: classpath scanning and automatic binding, lifecycle management, configuration to field mapping, field validation and parallelized object warmup.
Apache License 2.0
825 stars 180 forks source link

Change Grapher#graph roots check to be isEmpty instead of null #348

Closed nathanschile closed 6 years ago

nathanschile commented 7 years ago

Was getting a empty roots graph when using the Grapher class. roots can never be null, though it can be empty. Changed the graph method to check isEmpty on roots instead of null.

qiangdavidliu commented 6 years ago

thanks @nathanschile