revapi/src/main/java/org/revapi/Revapi.java
/**
         * @throws IllegalStateException if there are no api analyzers or no reporters added.
         * @return a new Revapi instance
         */
@throws IllegalStateException if there are no api analyzers or no reporters added.
@return a new Revapi instance
@throws IllegalStateException if there are no api analyzers or no reporters added . @return a new Revapi instance
@Nonnull
        public Revapi build() throws IllegalStateException {
            analyzers = analyzers == null ? Collections.emptySet() : analyzers;
            reporters = reporters == null ? Collections.emptySet() : reporters;
            transforms = transforms == null ? Collections.emptySet() : transforms;
            filters = filters == null ? Collections.emptySet() : filters;
            if (analyzers.isEmpty()) {
                throw new IllegalStateException(
                        "No API analyzers defined. The analysis cannot run without an analyzer.");
            }
            if (reporters.isEmpty()) {
                throw new IllegalStateException(
                        "No reporters defined. There is no way how to obtain the results of the analysis without" +
                                " a reporter.");
            }
            return new Revapi(analyzers, reporters, transforms, filters);
        }
@ Nonnull public Revapi build ( ) throws IllegalStateException { analyzers = analyzers == null ? Collections . emptySet ( ) : analyzers ; reporters = reporters == null ? Collections . emptySet ( ) : reporters ; transforms = transforms == null ? Collections . emptySet ( ) : transforms ; filters = filters == null ? Collections . emptySet ( ) : filters ; if ( analyzers . isEmpty ( ) ) { throw new IllegalStateException ( "No API analyzers defined. The analysis cannot run without an analyzer." ) ; } if ( reporters . isEmpty ( ) ) { throw new IllegalStateException ( "No reporters defined. There is no way how to obtain the results of the analysis without" + " a reporter." ) ; } return new Revapi ( analyzers , reporters , transforms , filters ) ; }
@throws IllegalStateException if there are no api analyzers or no reporters added.
@throws IllegalStateException if there are no api analyzers or no reporters added .