{"comment":{"url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/comments/13158509","html_url":"https://github.com/ericbottard/spring-cloud-dataflow/commit/b908dfe4af0dfd6d39700951823ada3311df0c56#commitcomment-13158509","id":13158509,"user":{"login":"ericbottard","id":313494,"avatar_url":"https://avatars.githubusercontent.com/u/313494?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbottard","html_url":"https://github.com/ericbottard","followers_url":"https://api.github.com/users/ericbottard/followers","following_url":"https://api.github.com/users/ericbottard/following{/other_user}","gists_url":"https://api.github.com/users/ericbottard/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbottard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbottard/subscriptions","organizations_url":"https://api.github.com/users/ericbottard/orgs","repos_url":"https://api.github.com/users/ericbottard/repos","events_url":"https://api.github.com/users/ericbottard/events{/privacy}","received_events_url":"https://api.github.com/users/ericbottard/received_events","type":"User","site_admin":false},"position":105,"line":95,"path":"spring-cloud-dataflow-module-deployers/spring-cloud-dataflow-module-deployer-cloudfoundry/src/main/java/org/springframework/cloud/dataflow/module/deployer/cloudfoundry/CloudFoundryModuleInstanceStatus.java","commit_id":"b908dfe4af0dfd6d39700951823ada3311df0c56","created_at":"2015-09-10T12:35:41Z","updated_at":"2015-09-10T12:35:41Z","body":"This is my classical \"dealing with an enum\" pattern. This would only happen if the lib introduced new values.\r\n\r\nI wish there was an annotation / compiler directive to fail compilation if not all values covered..\r\nI agree this may be a bit harsh in that particular case"}}