Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5045217ACF for ; Wed, 1 Apr 2015 22:29:54 +0000 (UTC) Received: (qmail 1506 invoked by uid 500); 1 Apr 2015 22:29:54 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 1469 invoked by uid 500); 1 Apr 2015 22:29:54 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 1458 invoked by uid 99); 1 Apr 2015 22:29:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 22:29:54 +0000 Date: Wed, 1 Apr 2015 22:29:54 +0000 (UTC) From: "Mike Drob (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CURATOR-200) Proposal: Remove references to guava library from public APIs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CURATOR-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391626#comment-14391626 ] Mike Drob commented on CURATOR-200: ----------------------------------- If we move up to Java 8, then we can replace Function and Predicate with the matching classes in {{java.util.function}}: * https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html * https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html I have not found an easy alternative for TypeToken. > Proposal: Remove references to guava library from public APIs > ------------------------------------------------------------- > > Key: CURATOR-200 > URL: https://issues.apache.org/jira/browse/CURATOR-200 > Project: Apache Curator > Issue Type: Improvement > Components: Framework > Reporter: Mike Drob > Fix For: 3.0.0 > > > There was a good discussion on the mailing list: http://curator.markmail.org/thread/yjete2ozm32jmz5u > The critical portion copied here: > {quote} > The problem classes that I have found are: > * curator-framework: org.apache.curator.framework.listen.ListenerContainer : method forEach takes a parameter of type com.google.common.base.Function > * curator-framework: org.apache.curator.framework.api.transaction.CuratorTransactionResult : method ofTypeAndPath returns com.google.common.base.Predicate > * curator-x-discovery-server: org.apache.curator.x.discovery.server.contexts.GenericDiscoveryContext : constructor takes param of type com.google.common.reflect.TypeToken > * curator-x-discovery: org.apache.curator.x.discovery.InstanceFilter : inherits from com.google.common.base.Predicate > {quote} > In the ensuing discussion, it sounded like we'd need to get started on an implementation before we had enough information to determine whether the changes are too intrusive or not. -- This message was sent by Atlassian JIRA (v6.3.4#6332)