Skip to content
This repository has been archived by the owner on Dec 25, 2019. It is now read-only.

Commit

Permalink
Prepare release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergej Shafarenka committed Aug 8, 2016
1 parent dc11fed commit 2dac3b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
Expand Up @@ -65,7 +65,8 @@ public FeatureCodeBrewer(Names names) {

mFeatureHostTypeBuilder = TypeSpec
.classBuilder(mFeatureHostClassName.simpleName())
.addTypeVariable(TypeVariableName.get("F", mNames.getFeatureClassName(featureNode)))
.addTypeVariable(TypeVariableName.get("F",
mNames.getFeatureClassName(featureNode)))
.addTypeVariable(TypeVariableName.get("FH", mFeatureHostClassName))
.superclass(superFeatureHostType)
.addModifiers(Modifier.PUBLIC)
Expand Down
Expand Up @@ -67,8 +67,8 @@ public void setValid(boolean valid) {
}

public void accept(ModelNodeVisitor visitor) {
boolean _continue = visitor.onFeatureEnter(this);
if (!_continue) {
boolean doNext = visitor.onFeatureEnter(this);
if (!doNext) {
return;
}
Collection<MethodNode> methodElements = mMethods.values();
Expand Down
Expand Up @@ -48,7 +48,8 @@ public void detectInheritance(ProcessingEnvironment env) {
for (FeatureNode featureNode : featureNodes) {

// feature has inheriting features if it is parametried with generics
List<? extends TypeParameterElement> typeParams = featureNode.getElement().getTypeParameters();
List<? extends TypeParameterElement> typeParams =
featureNode.getElement().getTypeParameters();
if (typeParams.size() > 0) {
featureNode.setHasInheritingFeatureNodes(true);
continue;
Expand All @@ -62,7 +63,8 @@ public void detectInheritance(ProcessingEnvironment env) {
continue;
}
Name otherName = otherFeatureNode.getElement().getQualifiedName();
Name superName = ((TypeElement) env.getTypeUtils().asElement(superType)).getQualifiedName();
Name superName = ((TypeElement) env.getTypeUtils()
.asElement(superType)).getQualifiedName();
if (otherName.equals(superName)) {
featureNode.setSuperFeatureNode(otherFeatureNode);
break;
Expand Down Expand Up @@ -96,7 +98,8 @@ public void detectLibraryFeatures(ProcessingEnvironment env, Names names) {

if (env.getTypeUtils().isSubtype(superType, featureType)) {
// create library node
TypeElement superTypeElement = (TypeElement) env.getTypeUtils().asElement(superType);
TypeElement superTypeElement = (TypeElement)
env.getTypeUtils().asElement(superType);
String name = superTypeElement.getQualifiedName().toString();
FeatureNode node = new FeatureNode(name, superTypeElement, true);
putFeatureNode(node);
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
@@ -1,6 +1,6 @@
GROUP=de.halfbit
VERSION_NAME=0.0.1
VERSION_CODE=001
VERSION_NAME=0.0.2
VERSION_CODE=002

POM_DESCRIPTION=Simple yet powerful composition library for Android.

Expand Down

0 comments on commit 2dac3b8

Please sign in to comment.