Buggy code:
public class ZkResolver implements Resolver , ZkUserInterface { private static final Logger log = Logger . getLogger ( ZkResolver . class . getName ( ) ) ; private ZooKeeper zk = null ; private Map < String , ResolverStrategy > strategies ; @ Override public void zooKeeperDown ( ) { } @ Override public void newZooKeeperInstance ( ZooKeeper zk ) { } List < ZkResolver . DynamicAddress > dynamicAddresses = new ArrayList < ZkResolver . DynamicAddress > ( ) ; @ Override public void timeEvent ( ) { } private ZooKeeper getZooKeeper ( ) throws CloudnameException { } public static class Builder { Map < String , ResolverStrategy > strategies = new HashMap < String , ResolverStrategy > ( ) ; public ZkResolver . Builder addStrategy ( ResolverStrategy strategy ) { } public Map < String , ResolverStrategy > getStrategies ( ) { } public ZkResolver build ( ) { } } public static final Pattern endpointPattern = Pattern . compile ( ( "^([a-z][a-z0-9-_]*)\\." + ( ( ( "(\\d+)\\." + "([a-z][a-z0-9-_]*)\\." ) + "([a-z][a-z0-9-_]*)\\." ) + "([a-z][a-z-_]*)\\z" ) ) ) ; public static final Pattern strategyPattern = Pattern . compile ( ( "^([a-z][a-z0-9-_]*)\\." + ( ( "([a-z][a-z0-9-_]*)\\." + "([a-z][a-z0-9-_]*)\\." ) + "([a-z][a-z0-9-_]*)\\z" ) ) ) ; public static final Pattern endpointStrategyPattern = Pattern . compile ( ( "^([a-z][a-z0-9-_]*)\\." + ( ( ( "([a-z][a-z0-9-_]*)\\." + "([a-z][a-z0-9-_]*)\\." ) + "([a-z][a-z0-9-_]*)\\." ) + "([a-z][a-z0-9-_]*)\\z" ) ) ) ; public static class Parameters { private String endpointName = null ; private Integer instance = null ; private String service = null ; private String user = null ; private String cell = null ; private String strategy = null ; public Parameters ( String addressExpression ) { } public String getStrategy ( ) { } public String getEndpointName ( ) { } public Integer getInstance ( ) { } public String getService ( ) { } public String getUser ( ) { } public String getCell ( ) { } private boolean trySetEndPointPattern ( String addressExperssion ) { } private boolean trySetStrategyPattern ( String addressExpression ) { } private boolean trySetEndpointStrategyPattern ( String addressExperssion ) { } } private ZkResolver ( ZkResolver . Builder builder ) { } private List < Integer > resolveInstances ( ZkResolver . Parameters parameters ) throws CloudnameException { } @ Override public List < Endpoint > resolve ( String addressExpression ) throws CloudnameException { } @ Override public void addResolverListener ( String address , ResolverFuture future ) { } @ Override public void shutdown ( ) { } private static void addEndpoints ( SingleExpressionResolver statusAndEndpoints , List < Endpoint > endpoints , String endpointname ) { } class DynamicAddress implements Watcher { private final String expression ; private final Map < String , Endpoint > clientPicture = new HashMap < String , Endpoint > ( ) ; private final ResolverFuture clientCallback ; private final Map < String , Long > dirtyTimeMap = new HashMap < String , Long > ( ) ; private final ZkResolver . Parameters parameters ; private final Map < String , SingleExpressionResolver > zkRemoteStatusAndEndpointsMap = new HashMap < String , SingleExpressionResolver > ( ) ; private final Random random = new Random ( ) ; private long lastResolve = 0 ; public DynamicAddress ( String expression , ResolverFuture clientCallback ) { } public void resolve ( ) { } private void notifyClient ( ) { } private void scheduleRefresh ( String path , long delayMillis ) { } private boolean timeToReresolve ( ) { synchronized ( this ) { <START_BUG> return ( ( lastResolve ) + ( ( 5 * 60 ) * 1000 ) ) < ( System . currentTimeMillis ( ) ) ; <END_BUG> } } private void wakeUp ( ) { } private boolean refreshPathWithWatcher ( String path ) { } @ Override public void process ( WatchedEvent watchedEvent ) { } } private static List < Integer > getInstances ( ZooKeeper zk , String path ) throws InterruptedException , CloudnameException { } }

Fix:
return ( ( lastResolve ) + ( ( 1 * 60 ) * 1000 ) ) < ( System . currentTimeMillis ( ) ) ;