ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/ImplicitLocalViewProcessor.java
private List<Class<?>> filterInterfaces(List<Class<?>> interfaces) {
        if (interfaces == null) {
            return null;
        }
        List<Class<?>> filteredInterfaces = new ArrayList<Class<?>>();
        for (Class<?> intf : interfaces) {
            if (intf.equals(java.io.Serializable.class)
                    || intf.equals(java.io.Externalizable.class)
                    || intf.getName().startsWith("javax.ejb.")) {
                continue;
            }
            filteredInterfaces.add(intf);
        }
        return filteredInterfaces;
    }
private List<Class<?>> filterInterfaces(List<Class<?>> interfaces) {
        if (interfaces == null) {
            return null;
        }
        List<Class<?>> filteredInterfaces = new ArrayList<Class<?>>();
        for (Class<?> intf : interfaces) {
            if (intf.equals(java.io.Serializable.class)
                    || intf.equals(java.io.Externalizable.class)
                    || intf.getName().startsWith("javax.ejb.")) {
                continue;
            }
            filteredInterfaces.add(intf);
        }
        return filteredInterfaces;
    }
private List < Class < ? > > filterInterfaces ( List < Class < ? > > interfaces ) { if ( interfaces == null ) { return null ; } List < Class < ? > > filteredInterfaces = new ArrayList < Class < ? > > ( ) ; for ( Class < ? > intf : interfaces ) { if ( intf . equals ( java . io . Serializable . class ) || intf . equals ( java . io . Externalizable . class ) || intf . getName ( ) . startsWith ( "javax.ejb." ) ) { continue ; } filteredInterfaces . add ( intf ) ; } return filteredInterfaces ; }
Returns a filtered list for the passed <code>interfaces</code> list, excluding the
{@link java.io.Serializable}, {@link java.io.Externalizable} and any interfaces belonging to <code>javax.ejb</code>
package.

@param interfaces The list of interfaces
@return
Returns a filtered list for the passed <code > interfaces< / code > list excluding the { @link java . io . Serializable } { @link java . io . Externalizable } and any interfaces belonging to <code > javax . ejb< / code > package .