package org.kefirsf.tk;

import twitter4j.Twitter;
import twitter4j.TwitterException;

/**
 * Utilities for twitter.
 * @author Vitalii Samolovskikh aka Kefir
 */
public final class TwitterUtils {
    public static boolean validate(Twitter twitter){
        boolean flag = false;
        if(twitter!=null){
            try {
                twitter.verifyCredentials();
                flag = true;
            } catch (TwitterException e) {
                // Nothing!
            }
        }
        return flag;
    }
    
    /**
     * Prevent class initialization.
     */
    private TwitterUtils() {
    }
}

@@ -47,43 +47,8 @@
 ter;
-%0Aimport twitter4j.TwitterException;
 %0A%0A/*
@@ -383,23 +383,16 @@
 h (T
-witterException
+hrowable
  e) 

Resolve bug with twitter authorization.