Skip to content

Commit

Permalink
Isolate {Sub}Component.Builder analysis and remove it, since it is no…
Browse files Browse the repository at this point in the history
…t part of 2.0.x
  • Loading branch information
cgruber committed Oct 23, 2015
1 parent a1b74e7 commit d463f17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.google.auto.common.BasicAnnotationProcessor.ProcessingStep;
import com.google.auto.common.MoreElements;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Maps;
import com.google.common.collect.SetMultimap;
Expand Down Expand Up @@ -78,8 +79,8 @@ public Set<Class<? extends Annotation>> annotations() {
protected ImmutableSet<ComponentDescriptor> componentDescriptors(
SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) {
Map<Element, ValidationReport<TypeElement>> builderReportsByComponent =
processComponentBuilders(elementsByAnnotation.get(Component.Builder.class));
Set<Element> subcomponentBuilderElements = elementsByAnnotation.get(Subcomponent.Builder.class);
ImmutableMap.<Element, ValidationReport<TypeElement>>of();
Set<Element> subcomponentBuilderElements = ImmutableSet.<Element>of();
Map<Element, ValidationReport<TypeElement>> builderReportsBySubcomponent =
processSubcomponentBuilders(subcomponentBuilderElements);
Set<Element> subcomponentElements = elementsByAnnotation.get(Subcomponent.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ public ComponentValidationReport validate(final TypeElement subject,
componentType.annotationType().getSimpleName()), subject);
}

ImmutableList<DeclaredType> builders =
enclosedBuilders(subject, componentType.builderAnnotationType());
ImmutableList<DeclaredType> builders = ImmutableList.<DeclaredType>of();
if (builders.size() > 1) {
builder.addItem(
String.format(ErrorMessages.builderMsgsFor(componentType).moreThanOne(), builders),
Expand Down

0 comments on commit d463f17

Please sign in to comment.