brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <>
Subject [GitHub] brooklyn-server pull request #513: Use stripped version of ScriptBytecodeAda...
Date Wed, 11 Jan 2017 14:44:15 GMT
Github user aledsage commented on a diff in the pull request:
    --- Diff: utils/groovy/src/main/java/org/apache/brooklyn/util/groovy/
    @@ -75,6 +76,20 @@
    +    /**
    +     * Alternative implementation of {@link ScriptBytecodeAdapter#isCase(Object, Object)}<br>
    +     * Stripped down to work only for caseExpression of type <code>java.lang.Class</code>.<br>
    +     * It behaves the same way only for cases when caseExpression <code>java.lang.Class</code>
does <b>not</b> implement <code>isCase</code> method.<br>
    +     * It goes directly to {@link DefaultGroovyMethods#isCase(Object, Object)} method
instead of using Groovy dynamic invocation.<br>
    +     * This safes extra operations and locks used in Groovy dynamic invocation. See <a
    +     */
    +    public static boolean scriptBytecodeAdapter_isCase(Object switchValue, Class caseExpression)
    --- End diff --
    If we keep it, let's make it package-private (so tests can still call it).

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message