Skip to content

Commit

Permalink
TechnicalException is now unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
leleuj committed Mar 15, 2013
1 parent 4221f67 commit b4ae62a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ public class CallbackController extends Controller {
* the authenticated user is retrieved and the originally requested url (or the specific saved url) is restored.
*
* @return the redirection to the saved request
* @throws TechnicalException
*/
@SuppressWarnings({
"rawtypes", "unchecked"
})
public static Result callback() throws TechnicalException {
public static Result callback() {
// clients group from config
final Clients clientsGroup = Config.getClients();

Expand Down Expand Up @@ -93,7 +92,7 @@ public static Result callback() throws TechnicalException {
}

// get user profile
final CommonProfile profile = (CommonProfile) client.getUserProfile(credentials);
final CommonProfile profile = client.getUserProfile(credentials);
logger.debug("profile : {}", profile);

// get or create sessionId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public class JavaController extends CallbackController {
*
* @param clientName
* @return the url of the provider where to redirect the user
* @throws TechnicalException
*/
protected static String getRedirectionUrl(final String clientName) throws TechnicalException {
protected static String getRedirectionUrl(final String clientName) {
return getRedirectionUrl(clientName, null);
}

Expand All @@ -56,10 +55,8 @@ protected static String getRedirectionUrl(final String clientName) throws Techni
* @param clientName
* @param targetUrl
* @return the url of the provider where to redirect the user
* @throws TechnicalException
*/
protected static String getRedirectionUrl(final String clientName, final String targetUrl)
throws TechnicalException {
protected static String getRedirectionUrl(final String clientName, final String targetUrl) {
// get or create session id
String sessionId = StorageHelper.getOrCreationSessionId(session());
// requested url to save
Expand Down

0 comments on commit b4ae62a

Please sign in to comment.