commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benedikt Ritter <brit...@apache.org>
Subject Re: [beanutils2] Assertions class vs. lang Validate
Date Mon, 03 Mar 2014 09:53:52 GMT
Hello André

2014-03-03 9:57 GMT+01:00 André Diermann <andre.diermann@gmail.com>:

> 2014-03-03 9:10 GMT+01:00 Benedikt Ritter <britter@apache.org>:
> >
> >
> > The stuff that we have implemented in the Assertions class can be
> replaced
> > by the methods available in Objects from java 7. You're right about
> > MethodUtil and TypeUtil.
> >
> >
> Just to be clear what you mean by replace:
> - wrapping the methods from Objects in the Assertions class to keep the API
> or
> - get rid of the Assertions class completly and directly use the methods
> from Objects class.
>
> If okay, I would like to create a ticket and to provide a patch for this
> tonight :)
>

I'd say let's go for the latter. Assertions is an internal class (package
private) so there is no need to keep it.

Benedikt


>
>
> >
> > Yes, but a test dependency doesn't get pulled in a user declares a
> > dependency to BU2. It's just that we don't want that users have lang in
> > their class path just because we need two or three methods here and
> there.
> >
>
> Ok, that makes sense. :)
>



-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message