square / auto-value-redacted Goto Github PK
View Code? Open in Web Editor NEWAn extension for Google's AutoValue that omits redacted fields from toString().
License: Apache License 2.0
An extension for Google's AutoValue that omits redacted fields from toString().
License: Apache License 2.0
When I am using a generic class, there was problem in generated class which causes compilation problem.
Say, my code is
@AutoValue
public abstract class TestUser<T> {
@Redacted
public abstract String name();
public static <T> Builder<T> builder() {
return new AutoValue_TestUser.Builder<>();
}
@AutoValue.Builder
public abstract static class Builder<T> {
public abstract Builder<T> name(String name);
public abstract TestUser<T> build();
}
}
But, the generated code will should have class looks like
final class AutoValue_TestUser extends $AutoValue_TestUser {
AutoValue_TestUser(String name) {
super(name);
}
@Override
public final String toString() {
return "TestUser{"
+ "name=██"
+ '}';
}
}
But it should have been
final class AutoValue_TestUser<T> extends $AutoValue_TestUser<T>
auto-value - 1.6.5
auto-value-redacted - 1.1.0
Any help regarding this is much appreciated.
I am having problem while creating AutoValue with @Redacted
. The sample code is
`@AutoValue
abstract class Animal {
@redacted abstract String name();
abstract int numberOfLegs();
abstract Builder toBuilder();
static Builder builder() {
return new AutoValue_Animal.Builder();
}
@AutoValue.Builder
abstract static class Builder {
abstract Builder setName(String value);
abstract Builder setNumberOfLegs(int value);
abstract Animal build();
}
}`
I made all what's in the readme:
using AutoValue 1.2-rc1
I'm also using the extension auto-value-parcel
auto-value-redacted does not have a dependency on Guava, but is using ImmutableSet
. At build time Guava is pulled in by auto-service. Most users probably won't notice this because it's pulled in by other extensions.
Auto Value supports incremental annotation processing in 1.6.3-rc1. auto-value-redacted can implement new API to support incremental annotation processing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.