Skip to content

Commit

Permalink
version changed
Browse files Browse the repository at this point in the history
  • Loading branch information
teogor committed Apr 13, 2021
1 parent 67d6e19 commit 7efcddc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion library-compiler/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=1.1.1
VERSION_NAME=1.0.0
GROUP=com.zeoflow

POM_DESCRIPTION=A fast annotation processor that auto-generates the Parcelable methods without writing them.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private MethodSpec generateAutoConstructor(ImmutableList<Property> properties)
{
params.add(ParameterSpec.builder(property.typeName, property.fieldName).build());
}
for (int i = 0; i < params.size(); i++)
for (int i=0; i<params.size(); i++)
{
ParameterSpec param = params.get(i);
builder.addJavadoc("\n@param " + param.name + " {@link " + param.type + "}");
Expand Down Expand Up @@ -654,10 +654,10 @@ static final class Property
final VariableElement element;
final TypeName typeName;
final ImmutableSet<String> annotations;
String defaultCode = "";
final int version;
final int afterVersion;
final int beforeVersion;
String defaultCode = "";
TypeMirror typeAdapter;

Property(String fieldName, VariableElement element)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static String removeTrailingSpace(String s)
{
i--;
}
sb.append(s, start, i + 1).append('\n');
sb.append(s.substring(start, i + 1)).append('\n');
start = nl + 1;
}
return sb.toString();
Expand Down Expand Up @@ -131,7 +131,7 @@ private static String compressSpace(String s)
sb.append(' ');
} else
{
sb.append(s, start, end);
sb.append(s.substring(start, end));
}
}
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ private Set<ComparedElements> visitingSetPlus(
{
ComparedElements comparedElements =
new ComparedElements(
a, ImmutableList.copyOf(aArguments),
b, ImmutableList.copyOf(bArguments));
a, ImmutableList.<TypeMirror>copyOf(aArguments),
b, ImmutableList.<TypeMirror>copyOf(bArguments));
Set<ComparedElements> newVisiting = new HashSet<ComparedElements>(visiting);
newVisiting.add(comparedElements);
return newVisiting;
Expand Down Expand Up @@ -303,13 +303,13 @@ public Integer visitUnknown(TypeMirror t, Set<Element> visiting)
@Override
protected boolean doEquivalent(TypeMirror a, TypeMirror b)
{
return MoreTypes.equal(a, b, ImmutableSet.of());
return MoreTypes.equal(a, b, ImmutableSet.<ComparedElements>of());
}

@Override
protected int doHash(TypeMirror t)
{
return MoreTypes.hash(t, ImmutableSet.of());
return MoreTypes.hash(t, ImmutableSet.<Element>of());
}
};
private static final TypeVisitor<Element, Void> AS_ELEMENT_VISITOR =
Expand Down Expand Up @@ -830,7 +830,7 @@ public boolean apply(TypeMirror input)
}), null);
return superclass != null
? Optional.of(MoreTypes.asDeclared(superclass))
: Optional.absent();
: Optional.<DeclaredType>absent();
}
/**
* Resolves a {@link VariableElement} parameter to a method or constructor based on the given
Expand Down
2 changes: 1 addition & 1 deletion library-runtime/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=1.1.1
VERSION_NAME=1.0.0
GROUP=com.zeoflow

POM_DESCRIPTION=A fast annotation processor that auto-generates the Parcelable methods without writing them.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.ArrayList;

/**
* An annotation to indicate the auto-parcel that the annotated class needs to be {@link android.os.Parcelable}
Expand Down

0 comments on commit 7efcddc

Please sign in to comment.