cloudfoundry/cf-java-client — pull request #132 by scottfrederick (2014-02-05 23:01:16+00:00)
Title: Fixed bug in determining authorization endpoint introduced in a prior refactoring.

Some code was moved in the previous refactoring. It turns out the code was dead in the previous location but became active after being moved, and the code should not run.

Here is the code in its previous location:
https://github.com/cloudfoundry/cf-java-client/blob/17c3589dd3b4f3bd1537aba2abec7fec62015152/cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/rest/CloudControllerClientImpl.java#L191-L195.

The value returned from `determineAuthorizationEndPointToUse` was saved in a class field, but the field was never used. The parameter with the same name as the assigned field is used further down in the method. Sneaky.