geronimo-jacc_1.4_spec/src/main/java/javax/security/jacc/EJBMethodPermission.java [136:180]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        public MethodSpec(String actionString) {
            if (actionString == null || actionString.length() == 0) {
                methodName = null;
                methodInterface = null;
                methodParams = null;
                actions = "";
            } else {
                String[] tokens = actionString.split(",", 3);

                switch (tokens.length) {
                    case 1:
                        {
                            methodName = emptyNullCheck(tokens[0]);
                            methodInterface = null;
                            methodParams = null;
                            break;
                        }
                    case 2:
                        {
                            if (tokens[1].length() == 0) throw new IllegalArgumentException("This format of actions requires a method interface");
                            checkMethodInterface(tokens[1]);

                            methodName = emptyNullCheck(tokens[0]);
                            methodInterface = emptyNullCheck(tokens[1]);
                            methodParams = null;
                            break;
                        }
                    case 3:
                        {
                            checkMethodInterface(tokens[1]);
                            if (tokens[2].indexOf(',') > -1) {
                                String[] test = tokens[2].split(",", -1);
                                for (String aTest : test) {
                                    if (aTest.length() == 0) throw new IllegalArgumentException("Invalid type name");
                                }
                            }

                            methodName = emptyNullCheck(tokens[0]);
                            methodInterface = emptyNullCheck(tokens[1]);
                            methodParams = tokens[2];
                        }
                }
                actions = actionString;
            }
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-jacc_1.1_spec/src/main/java/javax/security/jacc/EJBMethodPermission.java [136:180]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        public MethodSpec(String actionString) {
            if (actionString == null || actionString.length() == 0) {
                methodName = null;
                methodInterface = null;
                methodParams = null;
                actions = "";
            } else {
                String[] tokens = actionString.split(",", 3);

                switch (tokens.length) {
                    case 1:
                        {
                            methodName = emptyNullCheck(tokens[0]);
                            methodInterface = null;
                            methodParams = null;
                            break;
                        }
                    case 2:
                        {
                            if (tokens[1].length() == 0) throw new IllegalArgumentException("This format of actions requires a method interface");
                            checkMethodInterface(tokens[1]);

                            methodName = emptyNullCheck(tokens[0]);
                            methodInterface = emptyNullCheck(tokens[1]);
                            methodParams = null;
                            break;
                        }
                    case 3:
                        {
                            checkMethodInterface(tokens[1]);
                            if (tokens[2].indexOf(',') > -1) {
                                String[] test = tokens[2].split(",", -1);
                                for (String aTest : test) {
                                    if (aTest.length() == 0) throw new IllegalArgumentException("Invalid type name");
                                }
                            }

                            methodName = emptyNullCheck(tokens[0]);
                            methodInterface = emptyNullCheck(tokens[1]);
                            methodParams = tokens[2];
                        }
                }
                actions = actionString;
            }
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



