Re: Fwd: svn commit: r1712423 - in /pivot/trunk: core/src/org/apache/pivot/util/Utils.java wtk/src/org/apache/pivot/wtk/Bounds.java wtk/src/org/apache/pivot/wtk/Component.java wtk/src/org/apache/pivot

2015-11-06 Thread Sandro Martini
Hi Roger, > I guess my main motivation for doing this was seeing a lot of common > code, that is, this pattern: > if (blah == null) { > throw new IllegalArgumentException("blah is null.") > } > and wanted to make some common code for it. Because lots of times the > exception had no messag

Re: Fwd: svn commit: r1712423 - in /pivot/trunk: core/src/org/apache/pivot/util/Utils.java wtk/src/org/apache/pivot/wtk/Bounds.java wtk/src/org/apache/pivot/wtk/Component.java wtk/src/org/apache/pivot

2015-11-06 Thread Roger and Beth Whitcomb
Hi all, I guess my main motivation for doing this was seeing a lot of common code, that is, this pattern: if (blah == null) { throw new IllegalArgumentException("blah is null.") } and wanted to make some common code for it. Because lots of times the exception had no message, or it was

[jira] [Commented] (PIVOT-965) Java 8 BXML scripting security issues in Apache Pivot RIAs

2015-11-06 Thread JIRA
[ https://issues.apache.org/jira/browse/PIVOT-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993469#comment-14993469 ] Karel Hübl commented on PIVOT-965: -- Hi, I posted related question to JAVA Webstart & JNLP

Fwd: svn commit: r1712423 - in /pivot/trunk: core/src/org/apache/pivot/util/Utils.java wtk/src/org/apache/pivot/wtk/Bounds.java wtk/src/org/apache/pivot/wtk/Component.java wtk/src/org/apache/pivot/wtk

2015-11-06 Thread Sandro Martini
Hi all, just look at the commit (from Roger) for doing some cleanup, so not null checks for arguments are refactored in a utility method like this: Utils.checkNull(size, "size"); I'm not against this (refactor common code is always good :-) ), but just I wonder if in trunk we could use a way for